Pass HAProxy healthcheck requests as User-agent "LB-Check" to the backend webservers(apache)

Posted by Joseph on Server Fault See other posts from Server Fault or by Joseph
Published on 2012-09-07T12:48:12Z Indexed on 2012/09/07 15:40 UTC
Read the original article Hit count: 343

Filed under:

I have a HAProxy setup in front of webservers(apache) for loadbalancing. Also healthchecks for these webservers are also configured in HAProxy.

option httpchk  HEAD /healthcheck.txt HTTP/1.0

Is it possible to transfer these healthcheck requests to backend webservers as "LB-Check" User-agent or any other option, so that I can distinguish it from other log entries? However I dont want to go for "dontlog" option, as I dont want to miss these entries.

© Server Fault or respective owner

Related posts about haproxy