Expand description
rakka-cluster-sharding. akka.net: src/contrib/cluster/Akka.Cluster.Sharding.
Structs§
- Coordinator
State - Eventsourced coordinator state — kept separate from
ShardCoordinatorso callers can rebuild it from journal replay. The in-memoryShardCoordinatoris the local projection; this struct mirrors it through the persistence layer. - DData
Shard Coordinator - DData-backed allocation coordinator.
- Entity
Ref - Handoff
Coordinator - Per-shard handoff state machine.
- InMemory
Remember Store - In-memory store — for tests and as a reference implementation.
- Least
Shard Allocation Strategy - Place new shards on the region with the fewest shards, breaking
ties lexicographically. Rebalances if the difference between most-
and least-loaded regions exceeds
rebalance_threshold. - Passivation
Tracker - Persistent
Shard Coordinator - Wraps a
ShardCoordinatorwithEventsourcedplumbing. Userecoveron boot, thencommandfor every allocation / rebalance / removal. - Pinned
Allocation Strategy - Pin every shard to a specific region (useful for tests / static allocation). akka.net analog: a custom strategy returning a constant region.
- Rebalance
Runner - Remembered
Entities - In-process registry of remembered entity ids. Wraps a
RememberEntitiesStoreand serves quick lookups from a local snapshot. - Shard
- Shard
Coordinator - Shard
Region
Enums§
- Coordinator
Command - Coordinator
Error - Coordinator
Event - Handoff
Error - Handoff
State - Rebalance
Action - Action emitted by
RebalanceRunner::step. - Remember
Error
Traits§
- Message
Extractor - Remember
Entities Store - Pluggable persistence store for remembered entities.
- Shard
Allocation Strategy - Pluggable shard allocation policy.
Functions§
- project_
into - Project a
CoordinatorState(rebuilt from journal replay) onto a freshShardCoordinator. Useful right afterrecover.