incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maxim Kramarenko <maxi...@trackstudio.com>
Subject OrderPreservingPartitioner and manual token assignment
Date Tue, 22 Jun 2010 12:20:36 GMT
Hello!

I use OrderPreservingPartitioner and assign tokens manually.

Questions are:

1) Why range sorted in alphabetical order, not numeric order ?
It was ok with RandomPartitioner

Address       Status     Load          Range 
           Ring
 
84000000000000000000000000000000000000
172.19.0.35   Up         2.47 GB       0 
           |<--|
172.19.0.31   Up         1.85 GB 
112000000000000000000000000000000000000    |   ^
172.19.0.33   Up         1.46 GB 
142000000000000000000000000000000000000    v   |
172.19.0.30   Up         1.44 GB 
28000000000000000000000000000000000000     |   ^
172.19.0.32   Up         2.63 GB 
56000000000000000000000000000000000000     v   |
172.19.0.34   Up         3.29 GB 
84000000000000000000000000000000000000     |-->|

2) what is the token range ? For example, all our keys starts with 
customer number (a few digits), but number is only small part of ASCII 
table.

What is the best way to assign tokens manually when using 
OrderPreservingPartitioner ?

-- 
Best regards,
  Maxim                            mailto:maximkr@trackstudio.com

LinkedIn Profile: http://www.linkedin.com/in/maximkr
Google Talk/Jabber: maximkr@gmail.com
ICQ number: 307863079
Skype Chat: maxim.kramarenko
Yahoo! Messenger: maxim_kramarenko

Mime
View raw message