Hello all,

I use the latest haproxy version 1.8.1 on a FreeBSD 11.1 machine.
With
When i use the show stat command I get different results?

This is from the command echo "set server web-backend/server01 state
maint" | socat /var/run/haproxy/info.sock stdio I set the server in
maintenance mode.

echo "show stat" | socat /var/run/haproxy/info.sock stdio
www_https,FRONTEND,,,0,1,1000,1,0,188,0,0,1,,,,,OPEN,,,,,,,,,1,2,0,,,,0,0,0,1,,,,0,0,0,1,0,0,,0,1,1,,,0,0,0,0,,,,,,,,,,,,,,,,,,,,,http,,0,1,1,0,0,0,
web-backend,server01,0,0,0,0,,0,0,0,,0,,0,0,0,0,MAINT,50,1,0,0,1,6640,0,,1,3,1,,0,,2,0,,0,,,,0,0,0,0,0,0,,,,,0,0,,,,,-1,,,0,0,0,0,,,,,,,,,,,,172.16.10.61:80,S01,http,,,,,,,,
web-backend,server02,0,0,0,0,,0,0,0,,0,,0,0,0,0,UP,50,1,0,0,0,15785,0,,1,3,2,,0,,2,0,,0,L4OK,,0,0,0,0,0,0,0,,,,,0,0,,,,,-1,,,0,0,0,0,,,,Layer4
check passed,,2,3,4,,,,172.16.10.62:80,S02,http,,,,,,,,

If i repeat the command several times it sometimes jumps to UP
echo "show stat" | socat /var/run/haproxy/info.sock stdio
www_https,FRONTEND,,,0,1,1000,1,0,188,0,0,1,,,,,OPEN,,,,,,,,,1,2,0,,,,0,0,0,1,,,,0,0,0,1,0,0,,0,1,1,,,0,0,0,0,,,,,,,,,,,,,,,,,,,,,http,,0,1,1,0,0,0,
web-backend,server01,0,0,0,0,,0,0,0,,0,,0,0,0,0,UP,50,1,0,0,1,8554,0,,1,3,1,,0,,2,0,,0,,,,0,0,0,0,0,0,,,,,0,0,,,,,-1,,,0,0,0,0,,,,,,,,,,,,172.16.10.61:80,S01,http,,,,,,,,
web-backend,server02,0,0,0,0,,0,0,0,,0,,0,0,0,0,UP,50,1,0,0,0,17699,0,,1,3,2,,0,,2,0,,0,L4OK,,0,0,0,0,0,0,0,,,,,0,0,,,,,-1,,,0,0,0,0,,,,Layer4
check passed,,2,3,4,,,,172.16.10.62:80,S02,http,,,,,,,,

Also the web page shows UP and the command shows MAINT.

I have the following in my haproxy.conf

global
stats socket /var/run/haproxy/info.sock mode 600 level admin

Is it something I am doing wrong?

Thanks for your time,
regards

Johan


Reply via email to