schedulers

package
v2.0.10+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

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

This section is empty.

Functions

func CheckAddPeer

func CheckAddPeer(c *check.C, op *schedule.Operator, kind schedule.OperatorKind, storeID uint64)

CheckAddPeer checks add peer

func CheckAddPeerWithLearner

func CheckAddPeerWithLearner(c *check.C, op *schedule.Operator, kind schedule.OperatorKind, storeID uint64)

CheckAddPeerWithLearner checks add peer with learner

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

type BalanceType

type BalanceType int

BalanceType : the perspective of balance

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL