Apache Cassandra™ 2.0

EC2Snitch

Use the EC2Snitch for simple cluster deployments on Amazon EC2 where all nodes in the cluster are within a single region. The region is treated as the data center and the availability zones are treated as racks within the data center. For example, if a node is in us-east-1a, us-east is the data center name and 1a is the rack location. Because private IPs are used, this snitch does not work across multiple regions.

You can also specify multiple data centers within an EC2 region using the dc_suffix property in the /etc/dse/cassandra/cassandra-rackdc.properties file. For example, if node1 and node2 are in us-east-1:
Node cassandra-rackdc.properties Data center
1 dc_suffix=_A us-east-1_A
2 dc_suffix=_B us-east-1_B

When defining your keyspace strategy options, use the EC2 region name (for example,``us-east``) as your data center name.

Show/hide