You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Kanwar Sangha <ka...@mavenir.com> on 2013/03/01 03:19:31 UTC
NetworkTopology
Hi - Quick question. When specifying the replication across 2 DCs, can we have 1 replication factor across 2 Data centres ? Does the below mean that there will be 2 copies of the data , 1 in DC1 and 1 in DC2 ?
[default@unknown] CREATE KEYSPACE test
WITH placement_strategy = 'NetworkTopologyStrategy'
AND strategy_options={DC1:1,DC2:1};
So if I specify , DC1:2,DC2:2 - This means we have total 4 copies ? 2 in DC1 and 2 in DC2 ?
Thanks,
Kanwar
Re: NetworkTopology
Posted by Jabbar <aj...@gmail.com>.
Hello,
Yes you are right AFAIK.
On 1 March 2013 02:19, Kanwar Sangha <ka...@mavenir.com> wrote:
> Hi – Quick question. When specifying the replication across 2 DCs, can
> we have 1 replication factor across 2 Data centres ? Does the below mean
> that there will be 2 copies of the data , 1 in DC1 and 1 in DC2 ?****
>
> ** **
>
> [default@unknown] CREATE KEYSPACE test****
>
> WITH placement_strategy = 'NetworkTopologyStrategy'****
>
> AND strategy_options={DC1:1,DC2:1};****
>
> ** **
>
> So if I specify , DC1:2,DC2:2 – This means we have total 4 copies ? 2 in
> DC1 and 2 in DC2 ?****
>
> ** **
>
> ** **
>
> ** **
>
> Thanks,****
>
> Kanwar****
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
--
Thanks
A Jabbar Azam