SHOW HOSTS 语法
SHOW HOSTS
SHOW HOSTS
列出元服务器注册的所有存储主机。SHOW HOSTS
输出以下列:IP 地址、端口号、状态(online/offline)、leader 数量、leader 分布、partition 分布。
nebula> SHOW HOSTS;
=============================================================================================
| Ip | Port | Status | Leader count | Leader distribution | Partition distribution |
=============================================================================================
| 172.28.2.1 | 44500 | online | 0 | No valid partition | No valid partition |
---------------------------------------------------------------------------------------------
| 172.28.2.2 | 44500 | online | 2 | NBA: 1, gods: 1 | NBA: 1, gods: 1 |
---------------------------------------------------------------------------------------------
| 172.28.2.3 | 44500 | online | 0 | No valid partition | No valid partition |
---------------------------------------------------------------------------------------------
| Total | | | 2 | gods: 1, NBA: 1 | gods: 1, NBA: 1 |
---------------------------------------------------------------------------------------------