nodetool describering displays the token ranges for a keyspace and the endpoints that own each range. Its output identifies where ownership shifts in the hash ring, helping divide comprehensive scans into node-local queries. section 12.1.1
Use the command to make token-range extraction more targeted:
- Run describering for the keyspace being scanned. section 12.1.1
- Read each range’s start token, end token, and owning endpoints; output order is not sorted. section 12.1.1
- Use the ranges with TOKEN predicates to query large portions of a table on one node and its replicas. section 12.1.1
- Prefer driver metadata when available: the Python driver stores end-token-to-host mappings by keyspace. section 12.1.1
Inspecting the reviews keyspace
Run `nodetool describering reviews`. A returned TokenRange includes start_token, end_token, endpoints, RPC endpoints, datacenter, and rack. In a one-node cluster, the range lists one endpoint such as `172.18.0.2`.
