Skip to main content

Module peer_load_balancer

Module peer_load_balancer 

Source
Expand description

Peer-aware load balancer for IPFRS network layer.

Distributes requests across peers based on capacity, health, and observed latency. Supports six selection strategies including consistent hashing and power-of-two choices.

Structs§

PeerLoadBalancer
Peer-aware load balancer.
PlbBalancerConfig
Configuration for PeerLoadBalancer.
PlbBalancerStats
Aggregate statistics for the whole balancer.
PlbPeerState
Runtime state for a single peer tracked by the balancer.
PlbPeerStats
Per-peer statistics snapshot.
PlbRequestRecord
A single completed request record stored in the rolling log.

Enums§

PlbError
Errors produced by the load balancer.
PlbStrategy
Load-balancing selection strategy.

Type Aliases§

PlbPeerId
32-byte peer identifier used by the load balancer.
PlbPeerLoadBalancer
Alias: the main load balancer type.