Documentation ¶
Index ¶
Constants ¶
Variables ¶
View Source
var (
DefaultMaxConcurrencyAdvance = 8
)
Functions ¶
Types ¶
type Config ¶
type Config struct { // The gap between two retries. BackoffTime time.Duration `toml:"backoff-time" json:"backoff-time"` // The gap between calculating checkpoints. TickDuration time.Duration `toml:"tick-interval" json:"tick-interval"` // The threshold for polling TiKV for checkpoint of some range. TryAdvanceThreshold time.Duration `toml:"try-advance-threshold" json:"try-advance-threshold"` // The maximum lag could be tolerated for the checkpoint lag. CheckPointLagLimit time.Duration `toml:"check-point-lag-limit" json:"check-point-lag-limit"` }
func (Config) GetCheckPointLagLimit ¶
GetCheckPointLagLimit returns the maximum lag could be tolerated for the checkpoint lag.
func (Config) GetDefaultStartPollThreshold ¶
GetDefaultStartPollThreshold returns the threshold of begin polling the checkpoint in the normal condition (the subscribe manager is available.)
func (Config) GetSubscriberErrorStartPollThreshold ¶
GetSubscriberErrorStartPollThreshold returns the threshold of begin polling the checkpoint when the subscriber meets error.
func (Config) TickTimeout ¶
TickTimeout returns the max duration for each tick.
Click to show internal directories.
Click to hide internal directories.