Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RandomSelector ¶
type RandomSelector struct {
// contains filtered or unexported fields
}
RandomSelector selects source/target store randomly.
func (*RandomSelector) SelectSource ¶
SelectSource randomly selects a source store from those can pass all filters.
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, 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.