Le 6/23/22 à 22:51, Rashid B. a écrit :
Hi all,
Maybe someone have already encountered the same issue:
Sometimes I get " * L7OK" and "0" in check_status and check_code fields
respectively in stats in cvs format response.
The full response looks as follows:
'write_read,hostname1,0,0,1,2,500,866,238067,642557,,0,,0,0,0,0,UP,1,1,0,0,0,97441,0,,1,2,2,,866,,2,0,,1,**
L7OK,0*,3,,,,,,,,,,,0,0,,,,,49,,,0,0,0,112047,,,,Layer7 check
passed,,2,3,4,,,,,,tcp,,,,,,,,0,866,0,,,0,,0,7,0,540337,0,0,0,0,1,1,-,0,0,0,,,,,,,,,,,,,,\n'
My configuration is as follows:
listen write_read
bind *:5000
option httpchk
http-check expect status 200
default-server inter 3s fall 3 rise 2 on-marked-down shutdown-sessions
server hostname1 hostname1:1234 maxconn 500 check port 0910 inter 1s
HAProxy version 2.4.0-6cbbecf 2021/05/14
CentOS Linux release 7.9.2009
Any help is appreciated. Thanks in advance.
Hi,
When the health-check is running, the status reported is the last known status
and it is prefixed with an asterisks. In this case the code is set to 0 in the
CSV output. So it is expected. The same is done for the agent-check.
--
Christopher Faulet