Zero Downtime HAproxy Reload!!



simply trick for reload your haproxy without drop traffic with iptables (centos user)

############################################
# R Farid N , 09 September 2016 04:04      #
# <farid_@msn.com>                         #
# please use this trick for reload haproxy #
# for zero downtime or no drop current traffic#
############################################
iptables -I INPUT -p tcp -m multiport --dports 80,443 --syn -j DROP
sleep 1
service haproxy restart
iptables -D INPUT -p tcp -m multiport --dports 80,443 --syn -j DROP
save with name zero-downtime-haproxy.sh
chmod +x zero-downtime-haproxy.sh

just do it


- good luck-

Comments

Popular Posts