You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Thamizh <tc...@yahoo.co.in> on 2011/09/06 15:39:06 UTC
Reg Cassandra load balance
Hi All,
I am using Cassandra-0.7.8 on cluster of 4 machines. I have uploaded some files using Map/Reduce.
It looks files got distributed only among 2 nodes. When I used RF=3 it had got distributed to equally 4 nodes on below configuration.
Here are some config info's:
1. ByteOrderedPartitioner
2. Replication Factor = 1 (since, I have storage issue & RF will be increased later )
3. initial token - value has not been set.
4. create keyspace ipinfo with replication_factor = 1 and placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy';
[cassandra@cassandra01 apache-cassandra-0.7.8]$ bin/nodetool -h 172.27.10.131 ring
Address Status State Load Owns Token
Token(bytes[fddfd9bae90f0836cd9bff20b27e3c04])
172.27.10.132 Up Normal 11.92 GB 25.00% Token(bytes[3ddfd9bae90f0836cd9bff20b27e3c04])
172.27.15.80 Up Normal 10.21 GB 25.00% Token(bytes[7ddfd9bae90f0836cd9bff20b27e3c04])
172.27.10.131 Up Normal 54.34 KB 25.00% Token(bytes[bddfd9bae90f0836cd9bff20b27e3c04])
172.27.15.78 Up Normal 58.79 KB 25.00% Token(bytes[fddfd9bae90f0836cd9bff20b27e3c04])
Can you suggest me how shall I make load balance on my cluster.
Regards,
Thamizhannal
Re: Reg Cassandra load balance
Posted by Radim Kolar <hs...@sendmail.cz>.
switch to random (hash) partitioner
OR
move tokens from your empty nodes into different position in ring; split
your full nodes in half. ring will then look like: owns 14% 14% 14%
rest of ring.