You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Jeremiah Jordan <JE...@morningstar.com> on 2011/04/18 21:01:09 UTC

Changing replica placement strategy

If I am currently only running with one data center, can I change the
replica_placement_strategy from
org.apache.cassandra.locator.RackUnawareStrategy to
org.apache.cassandra.locator.NetworkTopologyStrategy without issue?  We
are planning to add another data center in the near future and want to
be able to use NetworkTopologyStrategy.  I am pretty sure
RackUnawareStrategy and NetworkTopologyStrategy pick the same nodes to
put data on if there is only one DC, so it should be ok right?


________________________________
Jeremiah Jordan
Application Developer
Morningstar, Inc.

Morningstar. Illuminating investing worldwide.

+1 312 696-6128 voice
jeremiah.jordan@morningstar.com

www.morningstar.com

This e-mail contains privileged and confidential information and is
intended only for the use of the person(s) named above. Any
dissemination, distribution, or duplication of this communication
without prior written consent from Morningstar is strictly prohibited.
If you have received this message in error, please contact the sender
immediately and delete the materials from any computer.

Re: Changing replica placement strategy

Posted by Peter Schuller <pe...@infidyne.com>.
> If I am currently only running with one data center, can I change the
> replica_placement_strategy from
> org.apache.cassandra.locator.RackUnawareStrategy to
> org.apache.cassandra.locator.NetworkTopologyStrategy without issue?  We
> are planning to add another data center in the near future and want to
> be able to use NetworkTopologyStrategy.  I am pretty sure
> RackUnawareStrategy and NetworkTopologyStrategy pick the same nodes to
> put data on if there is only one DC, so it should be ok right?

As long as you don't specify any rack information (i.e., so that all
are in the same rack) I *believe* this is true, but I don't dare
promise it.

-- 
/ Peter Schuller