Welcome! Log In Create A New Profile

Advanced

What is the recommended way to swap hash consistent servers (with least sudden hash change)

January 21, 2016 08:00PM
Hello,
If I have the following config

upstream ImageCluster {
server 10.1.1.1;
server 10.1.1.2;
server 10.1.1.3;

hash $cachekey consistent;
}

and wish to swap 10.1.1.3 to 10.1.1.5
would it be better to delete 10.1.1.3, restart and wait for the hash keys
to update,
add 10.1.1.5 and then restart,

or just delete and swap 10.1.1.3 with 10.1.1.5 all at once?

Also do you think it's a good strategy to add weightings so I can slowly
decrease the weightings value and restart nginx serveral times until the
weighting becomes 0, so that it will slowly change the keys?

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

What is the recommended way to swap hash consistent servers (with least sudden hash change)

highclass99 January 21, 2016 08:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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