Installing YDB DSTool
To install and configure YDB DSTool:
-
Install the
ydb-dstool
Python package:pip install ydb-dstool
-
Configure the environment:
export PATH=${PATH}:${HOME}/.local/bin
-
Test it by running the command that shows cluster information:
ydb-dstool -e <bs_endpoint> cluster list
bs_endpoint
: URI of the interface for YDB cluster distributed storage management. The interface is accessible over HTTP on any cluster node on port 8765 by default. URI example:http://localhost:8765
.
Result:
┌───────┬───────┬───────┬────────┬────────┬───────┬────────┐ │ Hosts │ Nodes │ Pools │ Groups │ VDisks │ Boxes │ PDisks │ ├───────┼───────┼───────┼────────┼────────┼───────┼────────┤ │ 8 │ 16 │ 1 │ 5 │ 40 │ 1 │ 32 │ └───────┴───────┴───────┴────────┴────────┴───────┴────────┘