Database Reference
In-Depth Information
num_tokens
The num_tokens are a way of determining the number of vnodes you want on a node.
By default, there are 256 vnodes, which is good for most of the cases. The num_tokens
are the number of row-key ranges a node is responsible for. One side effect of this property
is that you can have a heterogeneous mix of machines and yet have them loaded according
to their capacity. For example, a weak machine with low CPU and memory availability can
have 64 vnodes, while a beefy machine with 128 GB RAM and eight-core CPU can have
1024 vnodes. This is a useful feature whereby you can load the machines as per their hand-
ling capacity.
Breaking from manual management of node tokens from the older version and enabling
num_tokens frees users from the headache of balancing and assigning tokens to the
nodes, every time a new machine is added to the ring.
Search WWH ::




Custom Search