modproxybalancer
mod_proxy_balancer, sometimes referred to as modproxybalancer, is a module for the Apache HTTP Server that provides load balancing for requests proxied to multiple backend servers. It is part of the mod_proxy family and enables distribution of traffic across a pool of backends behind a single virtual URL. The module defines one or more balancer clusters, each identified by a BalancerName, and uses BalancerMember directives to register backend servers. Clients connect to Apache as the front end, while requests are routed to a suitable backend according to the configured balancing strategy.
Key features include configurable load balancing algorithms, session affinity, and retry behavior. The load balancing method
Management and observability are provided by the BalancerManager interface, exposed via a URL such as /balancer-manager,
Example configuration (plain text):
BalancerMember http://backend1.example.com:80
BalancerMember http://backend2.example.com:80 retry=5
ProxySet stickysession=JSESSIONID