Skip to content

Commit

Permalink
config: add comments to scheduler config
Browse files Browse the repository at this point in the history
Signed-off-by: Neil Shen <[email protected]>
  • Loading branch information
overvenus committed Jun 24, 2022
1 parent 5dacd28 commit 26ff1a4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/config/scheduler_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ import (

// SchedulerConfig configs TiCDC scheduler.
type SchedulerConfig struct {
HeartbeatTick int `toml:"heartbeat-tick" json:"heartbeat-tick"`
MaxTaskConcurrency int `toml:"max-task-concurrency" json:"max-task-concurrency"`
// HeartbeatTick is the number of owner tick to initial a heartbeat to captures.
HeartbeatTick int `toml:"heartbeat-tick" json:"heartbeat-tick"`
// MaxTaskConcurrency the maximum of concurrent running schedule tasks.
MaxTaskConcurrency int `toml:"max-task-concurrency" json:"max-task-concurrency"`
// CheckBalanceInterval the interval of balance tables between each capture.
CheckBalanceInterval TomlDuration `toml:"check-balance-interval" json:"check-balance-interval"`
}

Expand Down

0 comments on commit 26ff1a4

Please sign in to comment.