teseladb admin range
How to use teseladb admin range, with its options and its examples.
Usage
teseladb admin --node <addr> range split <range_id> [--at <clave en Extended JSON>]
teseladb admin --node <addr> range merge <range_id>
teseladb admin --node <addr> range relocate <range_id> --core <n>Description
Splits a range, merges it with its neighbour or moves it to another core. split without --at cuts where a split by size would; merge makes the range absorb its right neighbour; relocate moves it to core --core on each node.
Options
| Option | Default | Description |
|---|---|---|
--node | 127.0.0.1:27200 | Administration port of the node being asked. |
--format | Prints the output as JSON instead of text. | |
--dbpath | Data directory of the node. In teseladb admin, the directory whose PKI provides the credentials. | |
--tlsCertificateKeyFile | the PKI ones | Certificate and key in PEM. On a node, they replace the PKI ones; in admin and mcp, they are the client's. |
--tlsCAFile | the PKI one | CA in PEM. On a node, the one that verifies client certificates; in admin and mcp, the one that signed the node certificate. |
--at | Document key to split at, in Extended JSON; it must fall inside the range. | |
--core | Core the range moves to on each node. |
Examples
Split a range
Shell
teseladb admin range split 42Move it to another core
Shell
teseladb admin range relocate 42 --core 3Exit codes
0The command finished correctly.1The command failed while running; the error says why.2The command was written wrongly, with an argument missing or an unknown option.