Documentation ¶
Index ¶
- Constants
- func CheckAddPeer(c *check.C, op *schedule.Operator, kind schedule.OperatorKind, storeID uint64)
- func CheckTransferLeader(c *check.C, op *schedule.Operator, kind schedule.OperatorKind, ...)
- func CheckTransferPeer(c *check.C, op *schedule.Operator, kind schedule.OperatorKind, ...)
- type BalanceType
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 ¶
This section is empty.
Functions ¶
func CheckAddPeer ¶
CheckAddPeer check add peer
func CheckTransferLeader ¶
func CheckTransferLeader(c *check.C, op *schedule.Operator, kind schedule.OperatorKind, sourceID, targetID uint64)
CheckTransferLeader check whether leader is transferred
func CheckTransferPeer ¶
func CheckTransferPeer(c *check.C, op *schedule.Operator, kind schedule.OperatorKind, sourceID, targetID uint64)
CheckTransferPeer checks peer transfer
Types ¶
Click to show internal directories.
Click to hide internal directories.