https://github.com/tjake/cassandra-token-calculator
Specify token N out of M for the Random Paritioner
https://github.com/tjake/cassandra-token-calculator
Last synced: about 1 year ago
JSON representation
Specify token N out of M for the Random Paritioner
- Host: GitHub
- URL: https://github.com/tjake/cassandra-token-calculator
- Owner: tjake
- Created: 2012-01-30T16:26:10.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-01-30T16:29:45.000Z (over 14 years ago)
- Last Synced: 2025-02-14T11:52:09.954Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 85.9 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Calculates a initial token for the random paritioner assuming a fixed cluster size.
To run token calculator run:
java TokenCalculator N M
Where N: is the clockwise position of the token you wish to calculate. N starts at 0.
Where M: is the total number of nodes in the ring