0
votes

We use haproxy as http load balancer. Sometimes one of our servers stop responding while accepting http connection requests. So stats page displays servers as green "accessible" but our nagios server says CRITICAL - Socket timeout after 20 seconds" and that server is not responding actually.

How to tell haproxy to check page response time and if it takes longer than timeout then tag it as DOWN.

1

1 Answers

0
votes

Since you did not specify what kind of health check you are running, I can only direct you to the manual that explains all kinds.

https://www.haproxy.com/doc/aloha/7.0/haproxy/healthchecks.html

Concentrate on setting the correct Timeout for your health check.