SHOW PARTS¶
The SHOW PARTS
statement shows the information of a specified partition or all partitions in a graph space.
Syntax¶
SHOW PARTS [<part_id>]
Examples¶
Show the information of all partitions:
nebula> SHOW PARTS;
+--------------+-------------------+-------------------+-------+
| Partition ID | Leader | Peers | Losts |
+--------------+-------------------+-------------------+-------+
| 1 | "storaged1:44500" | "storaged1:44500" | "" |
+--------------+-------------------+-------------------+-------+
| 2 | "storaged2:44500" | "storaged2:44500" | "" |
+--------------+-------------------+-------------------+-------+
| 3 | "storaged0:44500" | "storaged0:44500" | "" |
+--------------+-------------------+-------------------+-------+
| 4 | "storaged1:44500" | "storaged1:44500" | "" |
+--------------+-------------------+-------------------+-------+
| 5 | "storaged2:44500" | "storaged2:44500" | "" |
+--------------+-------------------+-------------------+-------+
| 6 | "storaged0:44500" | "storaged0:44500" | "" |
+--------------+-------------------+-------------------+-------+
| 7 | "storaged1:44500" | "storaged1:44500" | "" |
+--------------+-------------------+-------------------+-------+
| 8 | "storaged2:44500" | "storaged2:44500" | "" |
+--------------+-------------------+-------------------+-------+
| 9 | "storaged0:44500" | "storaged0:44500" | "" |
+--------------+-------------------+-------------------+-------+
| 10 | "storaged1:44500" | "storaged1:44500" | "" |
+--------------+-------------------+-------------------+-------+
Got 10 rows (time spent 2317/3512 us)
Show the information of partition 1:
nebula> SHOW PARTS 1;
+--------------+-------------------+-------------------+-------+
| Partition ID | Leader | Peers | Losts |
+--------------+-------------------+-------------------+-------+
| 1 | "storaged1:44500" | "storaged1:44500" | "" |
+--------------+-------------------+-------------------+-------+
Got 1 rows (time spent 1055/1678 us)
Last update: December 31, 2020