| Package | Description |
|---|---|
| com.staros.schedule | |
| com.staros.service | |
| com.staros.shard |
| Modifier and Type | Class and Description |
|---|---|
class |
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ServiceManager.setShardScheduler(Scheduler shardScheduler) |
| Constructor and Description |
|---|
ShardChecker(ServiceManager serviceManager,
WorkerManager workerManager,
Scheduler scheduler) |
ShardManager(java.lang.String serviceId,
JournalSystem journalSystem,
IdGenerator idGenerator,
Scheduler shardScheduler) |
Copyright © 2024. All rights reserved.