Link to home
Start Free TrialLog in
Avatar of sivaatluri
sivaatluri

asked on

Nginx Health Check Failing

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
Avatar of gheist
gheist
Flag of Belgium image

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

ASKER

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;
Ghiest can you help me with this?
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial