cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edward Capriolo <edlinuxg...@gmail.com>
Subject Re: How does NetworkStrategy work?
Date Sun, 04 Dec 2011 16:39:02 GMT
On Sun, Dec 4, 2011 at 11:22 AM, Bill Hastings <bllhastings@gmail.com>wrote:

> If I have a replication factor set up as 3 and I want data replicated
> across data centers would I get 3 replicas per DC or is each replica placed
> in a different Data centers?


The strategy options dictate how many replicas go to each datacenter.

[default@unknown] create keyspace ks33 placement_strategy =
'org.apache.cassandra.locator.NetworkTopologyStrategy' and
strategy_options=[{0:2,1:2}];

This means two copies in datacenter 2 and two copies in datacenter 1.

more information multi-datacenter is here:
http://www.packtpub.com/sites/default/files/5122OS-Chapter-8-Multiple-Datacenter-Deployments.pdf?utm_source=packtpub&utm_medium=free&utm_campaign=pdf

Mime
View raw message