incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric tamme <eta...@gmail.com>
Subject Re: NTS Replication Strategy - only replicating to a subset of data centers
Date Thu, 23 Jun 2011 10:47:28 GMT
On Wed, Jun 22, 2011 at 6:58 PM, AJ <aj@dude.podzone.net> wrote:
> I'm just double-checking, but when using NTS, is it required to specify ALL
> the data centers in the strategy_options attribute?
>
> IOW, I do NOT want replication to ALL data centers; only a two of the three.
>  So, if my property file snitch describes all of the existing data centers
> and nodes as:
>
> $CASSANDRA_HOME/conf/cassandra-topology.properties:
>
> # Cassandra Node IP=Data Center:Rack
> 175.1.1.1=DC1:RAC1
> 175.2.1.1=DC2:RAC1
> 175.3.1.1=DC3:RAC1
> # default for unknown nodes
> default=DC1:rac1
>
> Can I specify strategy_options as:
>
> strategy_options=[{DC1:2, DC2:1}]
>
> and just leave out DC3 entirely?
>
> If not, will setting the last one to 0 work?:
>
> strategy_options=[{DC1:2, DC2:1, DC3:0}]
>
>
> Thanks!
>


You do not need to specify all data centers with NTS replication
strategy.  Your endpoint snitch must specify all nodes.

-Eric

Mime
View raw message