cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrey Ilinykh <ailin...@gmail.com>
Subject Re: Why data is not even distributed.
Date Mon, 08 Oct 2012 20:56:32 GMT
The problem was - I calculated 3 tokens for random partitioner but
used them with BOP, so nodes were not supposed to be loaded evenly.
That's ok, I got it.
But what I don't understand, why nodetool ring shows equal ownership.
This is an example:
I created small cluster with BOP and three tokens
00
55555555555555555555555555555555
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

then I put some random data which is nicely distributed:

Address         DC          Rack        Status State   Load
Effective-Ownership Token

                    Token(bytes[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa])
127.0.0.1       datacenter1 rack1       Up     Normal  1.92 MB
33.33%              Token(bytes[00])
127.0.0.2       datacenter1 rack1       Up     Normal  1.93 MB
33.33%              Token(bytes[55555555555555555555555555555555])
127.0.0.3       datacenter1 rack1       Up     Normal  1.99 MB
33.33%              Token(bytes[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa])

then I moved node 2 to 000001000000 and node 3 to 000002000000. Which
means node 1 owns almost everything.

Address         DC          Rack        Status State   Load
Effective-Ownership Token

                    Token(bytes[000002000000])
127.0.0.1       datacenter1 rack1       Up     Normal  5.76 MB
33.33%              Token(bytes[00])
127.0.0.2       datacenter1 rack1       Up     Normal  30.37 KB
33.33%              Token(bytes[000001000000])
127.0.0.3       datacenter1 rack1       Up     Normal  25.78 KB
33.33%              Token(bytes[000002000000])


As you can see all data is located on node 1. But nodetool ring still
shows 33.33% for each node. No matter how I move nodes, it always
gives me 33.33%.

It looks like a bug for me.

Thank you,
  Andrey

Mime
View raw message