Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How does the ring range work with nodes going down and new nodes being introduced into the cluster. As per slide 38, it appears to be a static range.


The ranges are assigned by a per-node token. With 4 nodes like the cluster shown in the slides, you'd space the tokens apart appropriately for 25% of the range on each node.

When you add a node, you need to decide if you want to rebalance the cluster by moving every node's token a bit so that every node's range consumes 20% of the keyspace, or if you just want to quickly alleviate load by splitting a single node's traffic in half by assigning the new node's token half way into an existing node's range.

Decommissioning a node works the same way, but in reverse.

More detailed info: http://www.datastax.com/docs/1.0/operations/cluster_manageme...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: