SHOW HOSTS 语法

  1. SHOW HOSTS

SHOW HOSTS 列出元服务器注册的所有存储主机。SHOW HOSTS 输出以下列:IP 地址、端口号、状态(online/offline)、leader 数量、leader 分布、partition 分布。

  1. nebula> SHOW HOSTS;
  2. =============================================================================================
  3. | Ip | Port | Status | Leader count | Leader distribution | Partition distribution |
  4. =============================================================================================
  5. | 172.28.2.1 | 44500 | online | 0 | No valid partition | No valid partition |
  6. ---------------------------------------------------------------------------------------------
  7. | 172.28.2.2 | 44500 | online | 2 | NBA: 1, gods: 1 | NBA: 1, gods: 1 |
  8. ---------------------------------------------------------------------------------------------
  9. | 172.28.2.3 | 44500 | online | 0 | No valid partition | No valid partition |
  10. ---------------------------------------------------------------------------------------------
  11. | Total | | | 2 | gods: 1, NBA: 1 | gods: 1, NBA: 1 |
  12. ---------------------------------------------------------------------------------------------