cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piavlo <>
Subject need help with choosing correct tokens for ByteOrderedPartitioner
Date Thu, 24 Nov 2011 09:55:22 GMT

We need help with choosing  correct tokens for ByteOrderedPartitioner
Originally the key where supposed to be member_id-yyyymmdd
but since we need to male rage scans on same member_id and varying date 
ranges yyyymmdd
we decided to use ByteOrderedPartitioner, so we need that same member 
will be assigned to same token range.
So we decided that the keys will be md5(member_id)yyyymmdd
Since md5 on member_id should give even distribution or member_id across 

We have 4 nodes, and don't understand how to choose the tokens.
We tried the following tokens

# ./tokengentool 4
token 0: 0
token 1: 42535295865117307932921825928971026432
token 2: 85070591730234615865843651857942052864
token 3: 127605887595351923798765477786913079296

and appended 29991231

so we ended up with the following tokens

token 0: 0
token 1: 4253529586511730793292182592897102643229991231
token 2: 8507059173023461586584365185794205286429991231
token 3: 12760588759535192379876547778691307929629991231

But the key end up not evenly distributed.

So any help is appreciated.


View raw message