We use /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid -sf <pid>
In production to gracefully restart haproxy. But sometimes we notice that the old haproxy process taking a long time to go away and if we make multiple updates and it would result in multiple haproxy processes for a long time. How can we make sure the old haproxy can go away in a reasonable amount of time? Thanks, Wei [ec2-user@pomfret-node-acs-haproxy-apps-1365702721944302664 ~]$ ps -ef |grep haprox root 18297 1 0 18:57 ? 00:00:01 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid -sf 18232 root 21285 1 0 22:32 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid -sf 21281 root 21890 1 0 23:11 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid -sf 21879 root 22004 1 0 23:17 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid -sf 22000 root 22071 1 0 23:22 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid -sf 22004 ec2-user 22076 21908 0 23:23 pts/1 00:00:00 grep haprox

