Skip to main content

Module load_balancing

Module load_balancing 

Source

Structs§

LeastLoaded
Maglev
Maglev consistent hashing (Google, NSDI’16).
PowerOfTwo
Random
Rendezvous
Weighted Rendezvous (Highest Random Weight) hashing.
RoundRobin

Constants§

DEFAULT_HASH_SEED
Fixed seed used by the affinity hashers (HRW / Maglev). It must NOT be a RandomState: the selection has to be reproducible across workers and across process restarts so that every Sōzu instance routing the same flow key lands on the same backend. The constant is arbitrary but stable.

Traits§

LoadBalancingAlgorithm