| Interface | Description |
|---|---|
| Scheduler |
| Class | Description |
|---|---|
| ReplicaWorkerInvertIndex |
Helper class to get worker -> shard index and possibly group by worker groups
|
| ScheduleScorer | |
| ShardSchedulerV2 |
Designed to be multi-services shared scheduler
Assumptions:
Uniqueness:
* serviceId + shardId, globally unique
* shardGroupId, globally unique
* workerGroupId, globally unique
* workerId, globally unique
Two phases scheduling:
- phase 1: calculation
* select worker as target to add/remove shard replica
- phase 2: dispatch
* send RPC call to worker to make the change of the adding/removing shard replica, and update shard info upon success.
|
Copyright © 2024. All rights reserved.