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

highclass99 highclass99 at gmail.com
Fri Jan 22 00:58:23 UTC 2016

If I have the following config

upstream ImageCluster  {

  hash $cachekey consistent;

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

or just delete and swap with 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20160122/b61d486d/attachment.html>

More information about the nginx mailing list