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
Linux

Avatar of undefined
Last Comment
gheist

8/22/2022 - Mon
gheist

Can you provide configuration sniplet?
default fail_timeout is 10s which is more than sufficient to restart tomcat or jetty
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;
sivaatluri

ASKER
Ghiest can you help me with this?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
ASKER CERTIFIED SOLUTION
gheist

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.