Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BalanceSelector ¶
type BalanceSelector struct {
// contains filtered or unexported fields
}
BalanceSelector selects source/target from store candidates based on their resource scores.
func NewBalanceSelector ¶
func NewBalanceSelector(kind core.ScheduleKind, filters []filter.Filter) *BalanceSelector
NewBalanceSelector creates a BalanceSelector instance.
type RandomSelector ¶
type RandomSelector struct {
// contains filtered or unexported fields
}
RandomSelector selects source/target store randomly.
func NewRandomSelector ¶
func NewRandomSelector(filters []filter.Filter) *RandomSelector
NewRandomSelector creates a RandomSelector instance.
type ReplicaSelector ¶
type ReplicaSelector struct {
// contains filtered or unexported fields
}
ReplicaSelector selects source/target store candidates based on their distinct scores based on a region's peer stores.
func NewReplicaSelector ¶
func NewReplicaSelector(regionStores []*core.StoreInfo, labels []string, filters ...filter.Filter) *ReplicaSelector
NewReplicaSelector creates a ReplicaSelector instance.
func (*ReplicaSelector) SelectSource ¶
SelectSource selects the store that can pass all filters and has the minimal distinct score.
Click to show internal directories.
Click to hide internal directories.