You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Viswanathan Ramachandran <vi...@gmail.com> on 2014/08/07 23:46:51 UTC

Is nodetool cleanup necessary on nodes of different data center when new node is added

I plan to have a multi data center Cassandra 2 setup with 2-4 nodes per
data center and several 10s of data centers. We have keyspaces replicated
on a certain number of nodes on *each* data center. Essentially, each data
center has a logical ring that covers all token ranges. We have a vnode
based deployment. So tokens should get assigned to the nodes automatically.

Documentation at
http://www.datastax.com/documentation/cassandra/2.0/cassandra/operations/ops_add_node_to_cluster_t.html
suggests
that addition of new node requires cleanup to be run on all other nodes of
the cluster. However, it does not clarify the procedure in a multi-data
center setup.

My understanding is that nodetool cleanup removes data which no longer
belongs to that node. When a new data center is being setup, we are
creating completely new replicas and AFAICT, it does not result in data
movement/rebalance outside of this new data center and hence there is no
cleanup requirement on nodes of other data centers. Is someone able to
confirm if my understanding is right, and cleanup is not required on nodes
of other data centers?


Thanks

Vish

Re: Is nodetool cleanup necessary on nodes of different data center when new node is added

Posted by Robert Coli <rc...@eventbrite.com>.
On Thu, Aug 7, 2014 at 2:46 PM, Viswanathan Ramachandran <
vish.ramachandran@gmail.com> wrote:

> I plan to have a multi data center Cassandra 2 setup with 2-4 nodes per
> data center and several 10s of data centers. We have My understanding is
> that nodetool cleanup removes data which no longer belongs to that node.
> When a new data center is being setup, we are creating completely new
> replicas and AFAICT, it does not result in data movement/rebalance outside
> of this new data center and hence there is no cleanup requirement on nodes
> of other data centers. Is someone able to confirm if my understanding is
> right, and cleanup is not required on nodes of other data centers?
>
This is the correct understanding; as you say, the key is that cleanup
removes data which no longer belongs to a node. In this situation, no node
loses responsibility for any replica, so cleanup is not necessary.

For what it's worth, 2-4 nodes per data center and several 10s of data
centers is an unusual deploy for Cassandra. If you can discuss it, what is
the use case?

=Rob