Welcome! Log In Create A New Profile

Advanced

upstream: grant recovery time to backend server

October 16, 2012 06:21AM
Hello,

i have a load balancing setup running with nginx in front and 2 tomcats as backend:

upstream backend {
ip_hash;
server 192.168.1.100;
server 192.168.1.101;
}

Runs fine so far, but from time to time one of the tomcats crashes and needs to be restarted. As soon as nginx notices that the tomcat is coming up, nginx starts to forward requests to the starting-up tomcat. But it would be better that the tomcat starts up completly before nginx starts sending requests to it.

Is there any possibility to grant a recovery time to a backend server before the backend receives requests? I.e. something like "nginx: hey, i noticed that the formerly crashed backend server is coming up, but i'll wait 300s before sending requests to it"?


thx in advance
revirii
Subject Author Posted

upstream: grant recovery time to backend server

revirii October 16, 2012 06:21AM

Re: upstream: grant recovery time to backend server

Maxim Dounin October 16, 2012 06:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 87
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 254 on July 05, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready