4 ms·
With your solution you can only restart the load balancer at the rate of the longest running connections Well, perhaps I should have provided more detail. Our
by moe 11y ago
With your solution you can only restart the load balancer at the rate of the longest running connections
Well, perhaps I should have provided more detail. Our ansible deployment script actually counts the port up until it finds a free one (we keep a port-range reserved for this purpose). So if there are multiple changes in rapid succession then more than two haproxy instances may dangle around for a while.
The "port discovery" is a shell-task that registers the port to be used as a variable, which is then used by the templates of the haproxy and iptables roles.
The cleanup is done by a 15min-cronjob which kills all haproxy instances that have no connections in netstat and don't match the haproxy pidfile.