Skip to main content

Module maglev

Module maglev 

Source
Expand description

Maglev consistent hashing load balancer

Implements Google’s Maglev algorithm for consistent hashing with minimal disruption when backends are added or removed. Uses a permutation-based lookup table for O(1) selection.

Reference: https://research.google/pubs/pub44824/

Structs§

MaglevBalancer
Maglev consistent hashing load balancer
MaglevConfig
Configuration for Maglev consistent hashing

Enums§

MaglevKeySource
Source for extracting the hash key from requests