websafety icon indicating copy to clipboard operation
websafety copied to clipboard

haproxy tcp check results into a lot of error_transaction_end_before_headers

Open ra-at-diladele-com opened this issue 2 years ago • 3 comments

It might be possible to adjust haproxy checks by using special HEAD request check as explained on https://www.serverlab.ca/tutorials/linux/network-services/how-to-configure-haproxy-health-checks/

listen myapp2 0.0.0.0:8080
    mode http
    option httpchk HEAD /health_check.php HTTP/1.1\r\nHost:\ serverlab.com
    server node1 10.0.0.1:80 check fall 3 rise 2
    server node2 10.0.0.2:80 check fall 3 rise 2

ra-at-diladele-com avatar Feb 03 '22 12:02 ra-at-diladele-com

Or we could replace the default squid logging daemon - to ignore such records and not to put them into access log at all.

ra-at-diladele-com avatar Apr 07 '22 11:04 ra-at-diladele-com

For now we added the "apply ignore settings" in the realtime activity table too. Lets see if this is enough.

ra-at-diladele-com avatar Apr 10 '22 16:04 ra-at-diladele-com

It seems this works good in 8.1 - if admin needs to only exclude haproxy checks - then this workaround might still be useful. Adding to known issues.

ra-at-diladele-com avatar Apr 11 '22 14:04 ra-at-diladele-com