HAProxy flapping status after disable
Issue
- After sending a disable command to the HAProxy backend, the backend service seems to flap back and forth from UP to MAINT.
- Data continues to flow to the backend even after it has been disabled.
- The following can be observed:
[root@haproxy ~]# echo "disable server mybackend/web-1" | socat stdio unix-connect:/var/lib/haproxy/stats
[root@haproxy ~]# echo "show stat" | socat stdio unix-connect:/var/lib/haproxy/stats | grep web- | cut -d ',' -f 1,2,18
mybackend,web-1,UP
mybackend,web-2,UP
[root@haproxy ~]# echo "show stat" | socat stdio unix-connect:/var/lib/haproxy/stats | grep web- | cut -d ',' -f 1,2,18
mybackend,web-1,UP
mybackend,web-2,UP
[root@haproxy ~]# echo "show stat" | socat stdio unix-connect:/var/lib/haproxy/stats | grep web- | cut -d ',' -f 1,2,18
mybackend,web-1,MAINT
mybackend,web-2,UP
[root@haproxy ~]# echo "show stat" | socat stdio unix-connect:/var/lib/haproxy/stats | grep web- | cut -d ',' -f 1,2,18
mybackend,web-1,UP
mybackend,web-2,UP
Environment
- Red Hat Enterprise Linux 7
- HAProxy
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.