Welcome! Log In Create A New Profile

Advanced

How does Upstream ip_hash and down work?

Posted by rob@hixfamily.org 
How does Upstream ip_hash and down work?
August 31, 2011 11:30AM
When we want to take an upstream server down for maintenance, we need to do it gradually.

Ideally, we would mark it down, and it would stop accepting new connections but would continue service active users (using ip_hash). We could then see when the upstream server is no longer serving requests and make changes to it before bringing it back up.

If I mark an upstream server as down, reload the nginx upstream configuration, will all users with an ip_hash for that server immediately be routed to another server?

Rob
Re: How does Upstream ip_hash work?
September 02, 2011 01:38PM
It appears no one is checking these topics or I described it wrong.

Does nginx support gradually bringing down an upstream server?



Edited 1 time(s). Last edit at 09/02/2011 01:38PM by rob@hixfamily.org.
Re: How does Upstream ip_hash and down work?
September 14, 2011 06:07PM
If you use the down parameter and restat nginx, all connections being served by the upstream server are dropped.

So it appears that nginx cannot handle quiescing connections.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 264
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready