incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ganesh Deka <ganeshdeka2...@gmail.com>
Subject Re: NetworkTopologyStrategy ring distribution across 2 DC
Date Wed, 12 Mar 2014 04:01:19 GMT
Please help me to configure a single node cluster.

[image: Inline image 1]


On Wed, Mar 12, 2014 at 12:07 AM, Ramesh Natarajan <ramesh25@gmail.com>wrote:

>  [image: Boxbe] <https://www.boxbe.com/overview> This message is eligible
> for Automatic Cleanup! (ramesh25@gmail.com) Add cleanup rule<https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Ftoken%3D%252BCkdSkRRF9%252FxLdhgsC32HI0W9mbQwo9CZ4sHX28msPQV9x09%252BJrTBCch9Ow%252Bh%252BetmX97B2iYtYRSvJTqoU6nTmjyn5FmVZ3aAqZCyqnYdMJENVI5rGo%252BYTpi9xYksVSJ9uaCVneSRNM%253D%26key%3DB2PLtu5sSytDuKqo9aae6yMUP321fz6eLQFfGnifJzA%253D&tc_serial=16593591060&tc_rand=192474913&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>|
More
> info<http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=16593591060&tc_rand=192474913&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>
> Hi,
>
> I have 14 cassandra nodes, running as 2 data centers
> using PropertyFileSnitch as follows
>
> 192.168.1.101=DC1:RAC1
> 192.168.1.102=DC1:RAC1
> 192.168.1.103=DC1:RAC1
> 192.168.1.104=DC1:RAC1
> 192.168.1.105=DC1:RAC1
> 192.168.1.106=DC1:RAC1
> 192.168.1.107=DC1:RAC1
> 192.168.1.108=DC2:RAC1
> 192.168.1.109=DC2:RAC1
> 192.168.1.110=DC2:RAC1
> 192.168.1.111=DC2:RAC1
> 192.168.1.112=DC2:RAC1
> 192.168.1.113=DC2:RAC1
> 192.168.1.114=DC2:RAC1
>
> My schema uses replication factor of 3 for each data center as follows
>
> create keyspace test
>   with placement_strategy = 'NetworkTopologyStrategy'
>   and strategy_options = {DC2 : 3, DC1 : 3}
>   and durable_writes = true;
>
> When i setup the second DC, the initial token is offset by 1 per
> documentation. When i run the ring command I get this note
>
> Note: Ownership information does not include topology; for complete
> information, specify a keyspace
>
> Also the owns column is 0% for the second DC.
>
> Is this normal?
>
>
> thanks
> Ramesh
>
>
> # /opt/mp/storage/persistent/cassandra-dse/bin/nodetool -h cassandra101
> ring
> Note: Ownership information does not include topology; for complete
> information, specify a keyspace
>
> Datacenter: DC1
> ==========
> Address        Rack        Status State   Load            Owns
>    Token
>
>     6588122883467697004
> 192.168.1.101  RAC1        Up     Normal  4.8 MB          14.29%
>    -9223372036854775808
> 192.168.1.102  RAC1        Up     Normal  4.69 MB         14.29%
>    -6588122883467697006
> 192.168.1.103  RAC1        Up     Normal  4.83 MB         14.29%
>    -3952873730080618204
> 192.168.1.104  RAC1        Up     Normal  4.77 MB         14.29%
>    -1317624576693539402
> 192.168.1.105  RAC1        Up     Normal  4.8 MB          14.29%
>    1317624576693539400
> 192.168.1.106  RAC1        Up     Normal  4.73 MB         14.29%
>    3952873730080618202
> 192.168.1.107  RAC1        Up     Normal  4.72 MB         14.29%
>    6588122883467697004
>
> Datacenter: DC2
> ==========
> Address        Rack        Status State   Load            Owns
>    Token
>
>     6588122883467697005
> 192.168.1.108  RAC1        Up     Normal  3.22 MB         0.00%
>     -9223372036854775807
> 192.168.1.109  RAC1        Up     Normal  3.16 MB         0.00%
>     -6588122883467697005
> 192.168.1.110  RAC1        Up     Normal  4.79 MB         0.00%
>     -3952873730080618203
> 192.168.1.111  RAC1        Up     Normal  4.73 MB         0.00%
>     -1317624576693539401
> 192.168.1.112  RAC1        Up     Normal  4.76 MB         0.00%
>     1317624576693539401
> 192.168.1.113  RAC1        Up     Normal  3.19 MB         0.00%
>     3952873730080618203
> 192.168.1.114  RAC1        Up     Normal  4.69 MB         0.00%
>     6588122883467697005
>
> #
>
>
>

Mime
View raw message