Welcome! Log In Create A New Profile

Advanced

session persistance with IP hash

Brian Pugh
July 27, 2016 04:22PM
Running nginx free version 1.10.1-1.el6.ngx.x86_64 on RHEL 6.7. In my conf
I am using

http {
upstream backend {
# Use ip hash for session persistance
*ip_hash;*
server backend1:80;
server backend2:80;
server backend3:80;

}

My understanding is that the ip_hash directive is responsible for session
persistence. My questions are:

1) How long does it last? For example, if I connect and my ip hash tells
nginx to connect to backend3, will my source IP be forever tied to backend
3?

2) Is there another way to acheive session persistence other than ip hash
and other than purchasing plus edition?

3) Is there an ip hash "cache" or something I can clean out periodically to
force the source IP to get a new hash and therefore a chance to connect to
a different server?
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

session persistance with IP hash

Brian Pugh July 27, 2016 04:22PM

Re: session persistance with IP hash

Robert Paprocki July 27, 2016 04:36PM

Re: session persistance with IP hash

Reinis Rozitis July 27, 2016 04:46PM

Re: session persistance with IP hash

Brian Pugh July 27, 2016 04:56PM

Re: session persistance with IP hash

Reinis Rozitis July 27, 2016 06:04PM

Re: session persistance with IP hash

Brian Pugh July 27, 2016 09:24PM

Re: session persistance with IP hash

Robert Paprocki July 27, 2016 09:46PM

Re: session persistance with IP hash

Brian Pugh July 28, 2016 10:34AM

Re: session persistance with IP hash

Robert Paprocki July 28, 2016 12:08PM

Re: session persistance with IP hash

Brian Pugh July 28, 2016 12:42PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 225
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