cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dane Miller <>
Subject migrating from SimpleStrategy to NetworkTopologyStrategy
Date Mon, 11 Mar 2013 20:11:16 GMT

I'd like to resurrect this thread from April 2012 -
- "migrating from SimpleStrategy to NetworkTopologyStrategy"

We're in a similar situation, and I'd like to understand this more
thoroughly.  In preparation for adding another datacenter to our
cassandra cluster, I'd like to migrate from EC2Snitch + SimpleStrategy
to GosspingPropertyFileSnitch + NetworkTopologyStrategy.  Here are the
steps I'm planning:

Change the Snitch
1. set endpoint_snitch: GosspingPropertyFileSnitch in cassandra.yaml
2. configure to use a single rack and
datacenter,: rack=RAC1, dc=dc1
3. do a rolling restart of all nodes

Change replication strategy
4. for all keyspaces (except system*), alter keyspace ... with
replication = {'class' : 'NetworkTopologyStrategy', 'dc1' : 3}
5. run "nodetool repair -pr" on all nodes

Does this look right?  Also, I'm curious whether/why step 5 is
necessary, given the single rack configuration.

cassandra 1.2.2
dsc12 1.2.2-1
Ubuntu 12.04, x86_64
Datastax AMI



View raw message