Welcome! Log In Create A New Profile

Advanced

Re: ip_hash detailed behaviour

Maxim Dounin
November 15, 2013 12:36PM
Hello!

On Fri, Nov 15, 2013 at 03:13:44PM -0200, Martin Loy wrote:

> Hello
>
> I would like to know more about the behaviour of ip_hash when NGINX is
> reloaded and in the scenario of removing an upstream node.
>
> Is ip_hash somehow clever/sticky and would reasign the IPs to the same node
> after a reload or restart?

The ip_hash just uses a hash function to distribute clients among
configured upstream servers. If a number of upstream servers
changes, the distribution changes as well.

> and what would happen if an upstream node is
> marked/flagged as down.

In this case clients which are normally passed to the server
marked down will be distributed between other servers.

See http://nginx.org/r/ip_hash for more details.

--
Maxim Dounin
http://nginx.org/en/donation.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

ip_hash detailed behaviour

Martin Loy November 15, 2013 12:16PM

Re: ip_hash detailed behaviour

Maxim Dounin November 15, 2013 12:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 87
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready