Structsยง
- Assigner
- Core assigner with configurable strategies.
- Assigner
Builder - Builder for
Assigner
. - Scale
Factor - A validated, non-negative, finite scale factor.
- Vnode
Chunk ๐ - A lightweight struct to represent a chunk of
VNodes
during assignment. This is an internal implementation detail.
Enumsยง
- Balanced
By - Defines the vnode distribution strategy for hierarchical assignment.
- Capacity
Mode - Defines the capacity assignment strategy for containers.
- Vnode
Chunking Strategy - Defines the VNode chunking strategy for assignment.
Functionsยง
- assign_
hierarchical - Hierarchically distributes virtual nodes to actors in two weighted stages with deterministic tie-breaking.
- assign_
items_ weighted_ with_ scale_ fn - Assign items to weighted containers with optional capacity scaling and deterministic tie-breaking.
- compute_
worker_ ๐quotas - Computes per-worker VNode quotas based on actor counts and worker weights.
- stable_
hash ๐ - Stable hash utility
- unbounded_
scale - A no-op capacity scaling function: always returns
None
. - vec_
len_ ๐map - Helper: maps each
Vec<V>
to its length. - weighted_
scale - A unit capacity scaling function: always returns
Some(1.0)
.