Skip to main contentModule lb
Source - CookieHashLb
- Select a backend by hashing the value of a specific cookie.
- FirstLb
- Always select the first healthy backend. Simple active/standby failover.
- HeaderHashLb
- Select a backend by hashing the value of a specific request header.
- IpHashLb
- Select a backend by hashing the client IP address for session affinity.
- LbContext
- Contextual information about the current request, made available to
load-balancing strategies that need more than the pool itself.
- LeastConnLb
- Select the healthy backend with the fewest active connections.
- RandomLb
- Random selection across healthy backends.
- RoundRobinLb
- Simple round-robin load balancer.
- TwoRandomChoicesLb
- Two Random Choices (Power of Two Choices) load balancer.
- UriHashLb
- Select a backend by hashing the request URI path. Requests to the same
path will consistently hit the same backend (useful for caching).
- WeightedRoundRobinLb
- Smooth weighted round-robin as described in the nginx implementation.
- LoadBalancer
- Selects an upstream backend index from the pool.