Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxScheduleInterval = time.Second * 5 MinScheduleInterval = time.Millisecond * 10 MinSlowScheduleInterval = time.Second * 3 ScheduleIntervalFactor = 1.3 )
options for interval of schedulers
Variables ¶
View Source
var ErrScheduleConfigNotExist = errors.New("the config does not exist")
ErrScheduleConfigNotExist the config is not correct.
Functions ¶
This section is empty.
Types ¶
type BalanceLeaderCreateOption ¶
type BalanceLeaderCreateOption func(s *balanceLeaderScheduler)
BalanceLeaderCreateOption is used to create a scheduler with an option.
type BalanceRegionCreateOption ¶
type BalanceRegionCreateOption func(s *balanceRegionScheduler)
BalanceRegionCreateOption is used to create a scheduler with an option.
Click to show internal directories.
Click to hide internal directories.