You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Owen Davies <ca...@obduk.com> on 2012/12/03 13:42:42 UTC
Data not replicating to all datacenters
We have a 2 data center test cassandra setup running, and are writing
to it using LOCAL_QUORUM. When reading, sometimes the data is there,
sometimes it is not, which we think is a replication issue, even
though we have left it plenty of time after the writes.
We have the following setup:
cassandra -v: 1.1.6
cassandra.yaml
-----------------------
cluster_name: something
endpoint_snitch: PropertyFileSnitch
cassandra-topology.properties
--------------------------------------------
192.168.1.1=dc1:rack1
192.168.1.2=dc1:rack1
192.168.1.3=dc1:rack1
192.168.2.1=dc2:rack1
192.168.2.2=dc2:rack1
192.168.2.3=dc3:rack1
default=nodc:norack
cassandra-cli
--------------------
Keyspace: example:
Replication Strategy: org.apache.cassandra.locator.NetworkTopologyStrategy
Durable Writes: true
Options: [dc1:3, dc2:3]
nodetool ring
-------------------
Address DC Rack Status State Load
Effective-Ownership Token
159447687142037741049740936276011715300
192.168.1.2 dc1 rack1 Up Normal 111.17 GB
100.00% 67165620003619490909052924699950283577
192.168.1.1 dc1 rack1 Up Normal 204.57 GB
100.00% 71045951808949151217931264995073558408
192.168.2.1 dc2 rack1 Up Normal 209.92 GB
100.00% 107165019770579893816561717940612111506
192.168.1.3 dc1 rack1 Up Normal 209.92 GB
100.00% 114165363957966360026729000065495595953
192.168.2.3 dc2 rack1 Up Normal 198.22 GB
100.00% 147717787092318068320268200174271353451
192.168.2.2 dc2 rack1 Up Normal 179.31 GB
100.00% 159447687142037741049740936276011715300
Does anyone have any ideas why every server does not have the same
amount of data on?
Thanks,
Owen
Re: Data not replicating to all datacenters
Posted by Owen Davies <ca...@obduk.com>.
My bad, yes it does say dc2 in our config file (actually it is different ip
addresses and different names, but I wasn't sure if it
was sensitive information so changed it to generic terms).
Owen
On 5 December 2012 08:42, Tomas Nunez <to...@groupalia.com> wrote:
>
>
> 2012/12/3 Owen Davies <ca...@obduk.com>
>
>> cassandra-topology.properties
>> --------------------------------------------
>> 192.168.1.1=dc1:rack1
>> 192.168.1.2=dc1:rack1
>> 192.168.1.3=dc1:rack1
>>
>> 192.168.2.1=dc2:rack1
>> 192.168.2.2=dc2:rack1
>> 192.168.2.3=*dc3*:rack1
>>
>
> This is a typo, right? It says "dc2" in your config file, doesn't it?
>
> --
> [image: Groupalia] <http://es.groupalia.com/>
> www.groupalia.com <http://es.groupalia.com/> Tomàs Núñez IT-Sysprod Tel. +
> 34 93 159 31 00 Fax. + 34 93 396 18 52 Llull, 95-97, 2º planta, 08005
> BarcelonaSkype: tomas.nunez.groupalia tomas.nunez@groupalia.com<no...@groupalia.com> [image:
> Twitter] Twitter <http://twitter.com/#%21/groupaliaes> [image: Twitter]
> Facebook <https://www.facebook.com/GroupaliaEspana> [image: Twitter]
> Linkedin <http://www.linkedin.com/company/groupalia>
>
Re: Data not replicating to all datacenters
Posted by Tomas Nunez <to...@groupalia.com>.
2012/12/3 Owen Davies <ca...@obduk.com>
> cassandra-topology.properties
> --------------------------------------------
> 192.168.1.1=dc1:rack1
> 192.168.1.2=dc1:rack1
> 192.168.1.3=dc1:rack1
>
> 192.168.2.1=dc2:rack1
> 192.168.2.2=dc2:rack1
> 192.168.2.3=*dc3*:rack1
>
This is a typo, right? It says "dc2" in your config file, doesn't it?
--
[image: Groupalia] <http://es.groupalia.com/>
www.groupalia.com <http://es.groupalia.com/>Tomàs NúñezIT-SysprodTel. + 34
93 159 31 00 Fax. + 34 93 396 18 52Llull, 95-97, 2º planta, 08005
BarcelonaSkype:
tomas.nunez.groupaliatomas.nunez@groupalia.com<no...@groupalia.com>[image:
Twitter] Twitter <http://twitter.com/#%21/groupaliaes> [image: Twitter]
Facebook <https://www.facebook.com/GroupaliaEspana> [image: Twitter]
Linkedin <http://www.linkedin.com/company/groupalia>