Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScheduleResult ¶
type Scheduler ¶
type Scheduler interface { Name() string // Schedule will generate procedure based on current cluster snapshot, which will be submitted to ProcedureManager, and whether it is actually executed depends on the current state of ProcedureManager. Schedule(ctx context.Context, clusterSnapshot metadata.Snapshot) (ScheduleResult, error) // UpdateDeployMode is used to update deployMode for scheduler, // DeployMode means that the cluster topology is locked and the mapping between shards and nodes cannot be changed. UpdateDeployMode(ctx context.Context, enable bool) AddShardAffinityRule(ctx context.Context, rule ShardAffinityRule) error RemoveShardAffinityRule(ctx context.Context, shardID storage.ShardID) error ListShardAffinityRule(ctx context.Context) (ShardAffinityRule, error) }
type ShardAffinity ¶ added in v1.2.7
type ShardAffinityRule ¶ added in v1.2.7
type ShardAffinityRule struct {
Affinities []ShardAffinity
}
Click to show internal directories.
Click to hide internal directories.