Nginx Health Check Failing

sivaatluri
sivaatluri used Ask the Experts™
on
Hi,

 We are loadbalancing between  Java App Servers using Nginx Load Balancer, we had configured health checks.

For Max 3 failures it should not send the traffic, but nginx is still sending the traffic
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2015

Commented:
Can you provide configuration sniplet?
default fail_timeout is 10s which is more than sufficient to restart tomcat or jetty

Author

Commented:
But if the service is down in some odd hours, the 10s time would not be sufficient.

server 10.0.61.65:5010 weight=10 max_fails=3 fail_timeout=40s;
server 10.0.60.75:5001 weight=10 max_fails=3 fail_timeout=40s;

Author

Commented:
Ghiest can you help me with this?
Top Expert 2015
Commented:
your timeout is huge. make it default 10s. (Users will not wait for 40s for that one first failed request to time out.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial