Skip to content

Instantly share code, notes, and snippets.

@ambroff
Created December 22, 2011 06:05
Show Gist options
  • Save ambroff/1509153 to your computer and use it in GitHub Desktop.
Save ambroff/1509153 to your computer and use it in GitHub Desktop.
Collapsing a redis cluster from 6 nodes into 2.
1.) [1] [2] [3] Six node cluster
[4] [5] [6]
2.) [1] [2] <= [3] Hosts 2 and 5 replicate from 3 and 6 respectively.
[4] [5] <= [6] Once caught up, the clients are updated to point
to 2 and 5 instead, and 3 and 6 are terminated.
3.) [1] <= [2] Repeat.
[4] <= [5]
4.) [1] Now you're left with a two node cluster.
[4]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment