4 ms·
How do you ensure that no requests are lost when you reload HAProxy?
by atom_enger 10y ago
How do you ensure that no requests are lost when you reload HAProxy?
- jvehent 10y agoSoft reload takes care of that for you, sockets aren't dropped. If you restart, however, everything's dropped.
- atom_enger 10y agoIs that new in 1.6? As of 1.5.11 there was a lot of hacking required to get a true zero downtime reload: http://engineeringblog.yelp.com/2015/04/true-zero-downtime-haproxy-reloads.html http://engineeringblog.yelp.com/2015/04/true-zero-downtime-h...
- luhn 10y agoNo, he's referring to the soft reload added in 1.5, which the article you linked addresses under "Just Reload HAProxy." As the article points out, it's not quite zero-downtime, but pretty close.
- jontro 10y agoWhy not drop servers in a way described here? http://serverfault.com/questions/249316/how-can-i-remove-balanced-node-from-haproxy-via-command-line http://serverfault.com/questions/249316/how-can-i-remove-bal...
- jolynch 10y agoYou can down servers or backends over the stats socket, but you can't add them (adding servers requires a reload). The DNS resolution work that is going into 1.6 releases may lead to a workable approach where you over allocate servers in a backend and then update them to have the right host/port. Last I checked, however, you still couldn't set the port dynamically.