Pound is a great little load balancer, it’s fast, opensource and supports SSL termination, which is great!
Install
sudo apt-get install pound
Configuration
The default configuration should be pretty good for most purposes, but feel free to tweak as you require.
HTTP
We’ll first look at load balancing HTTP, in case you don’t want or need HTTPS load balancing.
We’ll need delete all the content within ListenHTTP block, once done it should look like this
ListenHTTP End
Now we add an address and port to listen on and finally a line to remove an HTTP header
ListenHTTP Address 0.0.0.0 # all interfaces Port 80 HeadRemove "X-Forwarded-For" End
This is a basic configuration, for each backend we want to load balance we’ll need to add a service within that listener.
You’ll notice we’re removing incoming headers called X-Forwarded-For, this is to make …