Hi, if you are starting the cluster at once and not adding nodes to existed cluster try to calc the tokens.
here is a python script to calc the tokens def tokens(nodes): - for x in xrange(nodes): - print 2 ** 127 / nodes * x also read the operation section in cassandra wiki http://wiki.apache.org/cassandra/Operations thanks mark On Sun, Jan 16, 2011 at 6:45 PM, Karl Hiramoto <k...@hiramoto.org> wrote: > Hi, > > I have a keyspace with Replication Factor: 2 > and it seems though that most of my data goes to one node. > > > What am I missing to have Cassandra balance more evenly? > > ./nodetool -h host1 ring > Address Status State Load Owns > Token > > 82740373310283352874863875878673027619 > 10.1.4.14 Up Normal 17.45 GB 77.48% > 44427918469925720421829352515848570517 > 10.1.4.12 Up Normal 8.1 GB 8.12% > 58247356085106932369828800153350419939 > 10.1.4.13 Up Normal 49.51 KB 1.66% > 61078635599166706937511052402724559481 > 10.1.4.15 Up Normal 54.48 KB 6.37% > 71909504454725029906187464140698793550 > 10.1.4.10 Up Normal 44.38 KB 6.37% > 82740373310283352874863875878673027619 > > > I use phpcasa as a client and it should randomly choose a host to > connect to. > > -- > Karl >