Hi Chris, Nginx is using a round robin algorithm to decide which host should get the request, since you are (probably) the only user tomcat 1 and tomcat 2 are getting each 50% of the trafic. Now you want all trafic to go to tomcat 2 because tomcat 1 is down, and you can achieve this by telling Nginx to mark a server as down if it cannot reach it: upstream backend { #ip_hash; serveby alecs.popa - How to...
![]() |
![]() |
![]() |
![]() |
|