| Package | Description |
|---|---|
| com.staros.heartbeat | |
| com.staros.schedule | |
| com.staros.shard | |
| com.staros.util |
| Modifier and Type | Class and Description |
|---|---|
class |
HeartbeatManager |
| 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 | Class and Description |
|---|---|
class |
ShardChecker |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractServer
Take cares of start()/stop() interface with Atomic variables to avoid repeatedly start/stop.
|
Copyright © 2024. All rights reserved.