HAProxy flapping status after disable

Solution Unverified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content