From 74e0545a90e03537ca7ef0e4be5363de32f53eca Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Thu, 10 Mar 2022 09:59:01 +0800 Subject: [PATCH] add http port for show hosts (#1145) * add http port for show hosts * Update docs-2.0/3.ngql-guide/7.general-query-statements/6.show/6.show-hosts.md * Update docs-2.0/3.ngql-guide/7.general-query-statements/6.show/6.show-hosts.md Co-authored-by: randomJoe211 <69501902+randomJoe211@users.noreply.github.com> Co-authored-by: abby.huang <78209557+abby-cyber@users.noreply.github.com> Co-authored-by: randomJoe211 <69501902+randomJoe211@users.noreply.github.com> --- docs-2.0/2.quick-start/4.nebula-graph-crud.md | 28 ++++----- .../6.show/6.show-hosts.md | 34 +++++------ .../9.space-statements/1.create-space.md | 28 ++++----- ...deploy-nebula-graph-with-docker-compose.md | 14 ++--- .../deploy-nebula-graph-cluster.md | 18 +++--- docs-2.0/8.service-tuning/load-balance.md | 60 +++++++++---------- 6 files changed, 91 insertions(+), 91 deletions(-) diff --git a/docs-2.0/2.quick-start/4.nebula-graph-crud.md b/docs-2.0/2.quick-start/4.nebula-graph-crud.md index f1a4379ca3d..9f7df648d34 100644 --- a/docs-2.0/2.quick-start/4.nebula-graph-crud.md +++ b/docs-2.0/2.quick-start/4.nebula-graph-crud.md @@ -59,13 +59,13 @@ We recommend that you check the machine status to make sure that all the Storage ```ngql nebula> SHOW HOSTS; -+------------------+------+----------+--------------+----------------------+------------------------+---------+ -| Host | Port | Status | Leader count | Leader distribution | Partition distribution | Version | -+------------------+------+----------+--------------+----------------------+------------------------+---------+ -| "192.168.10.100" | 9779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.0.0" | -| "192.168.10.101" | 9779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.0.0" | -| "192.168.10.102" | 9779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.0.0" | -+------------------+------+----------+--------------+----------------------+------------------------+---------+ ++------------------+------+-----------+----------+--------------+----------------------+------------------------+---------+ +| Host | Port | HTTP port | Status | Leader count | Leader distribution | Partition distribution | Version | ++------------------+------+-----------+----------+--------------+----------------------+------------------------+---------+ +| "192.168.10.100" | 9779 | 19669 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" | +| "192.168.10.101" | 9779 | 19669 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" | +| "192.168.10.102" | 9779 | 19669 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" | ++------------------+------+-----------+----------+--------------+----------------------+------------------------+---------+ ``` From the **Status** column of the table in the returned results, you can see that all the Storage services are online. @@ -134,13 +134,13 @@ From the **Status** column of the table in the returned results, you can see tha ```ngql nebula> SHOW HOSTS; - +-------------+-----------+-----------+--------------+----------------------------------+------------------------+---------+ - | Host | Port | Status | Leader count | Leader distribution | Partition distribution | Version | - +-------------+-----------+-----------+--------------+----------------------------------+------------------------+---------+ - | "storaged0" | 9779 | "ONLINE" | 5 | "basketballplayer:5" | "basketballplayer:5" | "3.0.0" | - | "storaged1" | 9779 | "ONLINE" | 5 | "basketballplayer:5" | "basketballplayer:5" | "3.0.0" | - | "storaged2" | 9779 | "ONLINE" | 5 | "basketballplayer:5" | "basketballplayer:5" | "3.0.0" | - +-------------+-----------+-----------+--------------+----------------------------------+------------------------+---------+ + +-------------+-----------+-----------+-----------+--------------+----------------------------------+------------------------+---------+ + | Host | Port | HTTP port | Status | Leader count | Leader distribution | Partition distribution | Version | + +-------------+-----------+-----------+-----------+--------------+----------------------------------+------------------------+---------+ + | "storaged0" | 9779 | 19669 | "ONLINE" | 5 | "basketballplayer:5" | "basketballplayer:5" | "3.1.0" | + | "storaged1" | 9779 | 19669 | "ONLINE" | 5 | "basketballplayer:5" | "basketballplayer:5" | "3.1.0" | + | "storaged2" | 9779 | 19669 | "ONLINE" | 5 | "basketballplayer:5" | "basketballplayer:5" | "3.1.0" | + +-------------+-----------+-----------+-----------+--------------+----------------------------------+------------------------+---------+ ``` If the **Leader distribution** is uneven, use `BALANCE LEADER` to redistribute the partitions. For more information, see [BALANCE](../8.service-tuning/load-balance.md). diff --git a/docs-2.0/3.ngql-guide/7.general-query-statements/6.show/6.show-hosts.md b/docs-2.0/3.ngql-guide/7.general-query-statements/6.show/6.show-hosts.md index 0673c1ee7e4..fdb014c0920 100644 --- a/docs-2.0/3.ngql-guide/7.general-query-statements/6.show/6.show-hosts.md +++ b/docs-2.0/3.ngql-guide/7.general-query-statements/6.show/6.show-hosts.md @@ -1,6 +1,6 @@ # SHOW HOSTS -The `SHOW HOSTS` statement shows the host and version information of Graph Service, Storage Service, and Meta Service. +The `SHOW HOSTS` statement shows the cluster information, including the port, status, leader, partition, and version information. You can also add the service type in the statement to view the information of the specific service. ## Syntax @@ -17,38 +17,38 @@ SHOW HOSTS [GRAPH | STORAGE | META]; ```ngql nebula> SHOW HOSTS; -+-------------+-------+----------+--------------+----------------------------------+------------------------------+---------+ -| Host | Port | Status | Leader count | Leader distribution | Partition distribution | Version | -+-------------+-------+----------+--------------+----------------------------------+------------------------------+---------+ -| "storaged0" | 9779 | "ONLINE" | 8 | "docs:5, basketballplayer:3" | "docs:5, basketballplayer:3" | "3.0.0" | -| "storaged1" | 9779 | "ONLINE" | 9 | "basketballplayer:4, docs:5" | "docs:5, basketballplayer:4" | "3.0.0" | -| "storaged2" | 9779 | "ONLINE" | 8 | "basketballplayer:3, docs:5" | "docs:5, basketballplayer:3" | "3.0.0" | -+-------------+-------+----------+--------------+----------------------------------+------------------------------+---------+ ++-------------+-------+-----------+----------+--------------+----------------------------------+------------------------------+---------+ +| Host | Port | HTTP port | Status | Leader count | Leader distribution | Partition distribution | Version | ++-------------+-------+-----------+----------+--------------+----------------------------------+------------------------------+---------+ +| "storaged0" | 9779 | 19669 | "ONLINE" | 8 | "docs:5, basketballplayer:3" | "docs:5, basketballplayer:3" | "3.1.0" | +| "storaged1" | 9779 | 19669 | "ONLINE" | 9 | "basketballplayer:4, docs:5" | "docs:5, basketballplayer:4" | "3.1.0" | +| "storaged2" | 9779 | 19669 | "ONLINE" | 8 | "basketballplayer:3, docs:5" | "docs:5, basketballplayer:3" | "3.1.0" | ++-------------+-------+-----------+----------+--------------+----------------------------------+------------------------------+---------+ nebula> SHOW HOSTS GRAPH; +-----------+------+----------+---------+--------------+---------+ | Host | Port | Status | Role | Git Info Sha | Version | +-----------+------+----------+---------+--------------+---------+ -| "graphd" | 9669 | "ONLINE" | "GRAPH" | "3ba41bd" | "3.0.0" | -| "graphd1" | 9669 | "ONLINE" | "GRAPH" | "3ba41bd" | "3.0.0" | -| "graphd2" | 9669 | "ONLINE" | "GRAPH" | "3ba41bd" | "3.0.0" | +| "graphd" | 9669 | "ONLINE" | "GRAPH" | "3ba41bd" | "3.1.0" | +| "graphd1" | 9669 | "ONLINE" | "GRAPH" | "3ba41bd" | "3.1.0" | +| "graphd2" | 9669 | "ONLINE" | "GRAPH" | "3ba41bd" | "3.1.0" | +-----------+------+----------+---------+--------------+---------+ nebula> SHOW HOSTS STORAGE; +-------------+------+----------+-----------+--------------+---------+ | Host | Port | Status | Role | Git Info Sha | Version | +-------------+------+----------+-----------+--------------+---------+ -| "storaged0" | 9779 | "ONLINE" | "STORAGE" | "3ba41bd" | "3.0.0" | -| "storaged1" | 9779 | "ONLINE" | "STORAGE" | "3ba41bd" | "3.0.0" | -| "storaged2" | 9779 | "ONLINE" | "STORAGE" | "3ba41bd" | "3.0.0" | +| "storaged0" | 9779 | "ONLINE" | "STORAGE" | "3ba41bd" | "3.1.0" | +| "storaged1" | 9779 | "ONLINE" | "STORAGE" | "3ba41bd" | "3.1.0" | +| "storaged2" | 9779 | "ONLINE" | "STORAGE" | "3ba41bd" | "3.1.0" | +-------------+------+----------+-----------+--------------+---------+ nebula> SHOW HOSTS META; +----------+------+----------+--------+--------------+---------+ | Host | Port | Status | Role | Git Info Sha | Version | +----------+------+----------+--------+--------------+---------+ -| "metad2" | 9559 | "ONLINE" | "META" | "3ba41bd" | "3.0.0" | -| "metad0" | 9559 | "ONLINE" | "META" | "3ba41bd" | "3.0.0" | -| "metad1" | 9559 | "ONLINE" | "META" | "3ba41bd" | "3.0.0" | +| "metad2" | 9559 | "ONLINE" | "META" | "3ba41bd" | "3.1.0" | +| "metad0" | 9559 | "ONLINE" | "META" | "3ba41bd" | "3.1.0" | +| "metad1" | 9559 | "ONLINE" | "META" | "3ba41bd" | "3.1.0" | +----------+------+----------+--------+--------------+---------+ ``` diff --git a/docs-2.0/3.ngql-guide/9.space-statements/1.create-space.md b/docs-2.0/3.ngql-guide/9.space-statements/1.create-space.md index 480495e5b4e..913422101d4 100644 --- a/docs-2.0/3.ngql-guide/9.space-statements/1.create-space.md +++ b/docs-2.0/3.ngql-guide/9.space-statements/1.create-space.md @@ -90,13 +90,13 @@ On some large clusters, the partition distribution is possibly unbalanced becaus ```ngql nebula> SHOW HOSTS; -+-------------+------+----------+--------------+--------------------------------+--------------------------------+---------+ -| Host | Port | Status | Leader count | Leader distribution | Partition distribution | Version | -+-------------+------+----------+--------------+--------------------------------+--------------------------------+---------+ -| "storaged0" | 9779 | "ONLINE" | 8 | "basketballplayer:3, test:5" | "basketballplayer:10, test:10" | "3.0.0" | -| "storaged1" | 9779 | "ONLINE" | 9 | "basketballplayer:4, test:5" | "basketballplayer:10, test:10" | "3.0.0" | -| "storaged2" | 9779 | "ONLINE" | 3 | "basketballplayer:3" | "basketballplayer:10, test:10" | "3.0.0" | -+-------------+------+----------+--------------+--------------------------------+--------------------------------+---------+ ++-------------+------+-----------+----------+--------------+--------------------------------+--------------------------------+---------+ +| Host | Port | HTTP port | Status | Leader count | Leader distribution | Partition distribution | Version | ++-------------+------+-----------+----------+--------------+--------------------------------+--------------------------------+---------+ +| "storaged0" | 9779 | 19669 | "ONLINE" | 8 | "basketballplayer:3, test:5" | "basketballplayer:10, test:10" | "3.1.0" | +| "storaged1" | 9779 | 19669 | "ONLINE" | 9 | "basketballplayer:4, test:5" | "basketballplayer:10, test:10" | "3.1.0" | +| "storaged2" | 9779 | 19669 | "ONLINE" | 3 | "basketballplayer:3" | "basketballplayer:10, test:10" | "3.1.0" | ++-------------+------+-----------+----------+--------------+--------------------------------+--------------------------------+---------+ ``` To balance the request loads, use the following command. @@ -104,11 +104,11 @@ To balance the request loads, use the following command. ```ngql nebula> BALANCE LEADER; nebula> SHOW HOSTS; -+-------------+------+----------+--------------+--------------------------------+--------------------------------+---------+ -| Host | Port | Status | Leader count | Leader distribution | Partition distribution | Version | -+-------------+------+----------+--------------+--------------------------------+--------------------------------+---------+ -| "storaged0" | 9779 | "ONLINE" | 7 | "basketballplayer:3, test:4" | "basketballplayer:10, test:10" | "3.0.0" | -| "storaged1" | 9779 | "ONLINE" | 7 | "basketballplayer:4, test:3" | "basketballplayer:10, test:10" | "3.0.0" | -| "storaged2" | 9779 | "ONLINE" | 6 | "basketballplayer:3, test:3" | "basketballplayer:10, test:10" | "3.0.0" | -+-------------+------+----------+--------------+--------------------------------+--------------------------------+---------+ ++-------------+------+-----------+----------+--------------+--------------------------------+--------------------------------+---------+ +| Host | Port | HTTP port | Status | Leader count | Leader distribution | Partition distribution | Version | ++-------------+------+-----------+----------+--------------+--------------------------------+--------------------------------+---------+ +| "storaged0" | 9779 | 19669 | "ONLINE" | 7 | "basketballplayer:3, test:4" | "basketballplayer:10, test:10" | "3.1.0" | +| "storaged1" | 9779 | 19669 | "ONLINE" | 7 | "basketballplayer:4, test:3" | "basketballplayer:10, test:10" | "3.1.0" | +| "storaged2" | 9779 | 19669 | "ONLINE" | 6 | "basketballplayer:3, test:3" | "basketballplayer:10, test:10" | "3.1.0" | ++-------------+------+-----------+----------+--------------+--------------------------------+--------------------------------+---------+ ``` diff --git a/docs-2.0/4.deployment-and-installation/2.compile-and-install-nebula-graph/3.deploy-nebula-graph-with-docker-compose.md b/docs-2.0/4.deployment-and-installation/2.compile-and-install-nebula-graph/3.deploy-nebula-graph-with-docker-compose.md index 7856f605928..1ab5eb0e9df 100644 --- a/docs-2.0/4.deployment-and-installation/2.compile-and-install-nebula-graph/3.deploy-nebula-graph-with-docker-compose.md +++ b/docs-2.0/4.deployment-and-installation/2.compile-and-install-nebula-graph/3.deploy-nebula-graph-with-docker-compose.md @@ -100,13 +100,13 @@ Using Docker Compose can quickly deploy Nebula Graph services based on the prepa nebula> ADD HOSTS "storaged0":9779,"storaged1":9779,"storaged2":9779; nebula> SHOW HOSTS; - +-------------+------+----------+--------------+----------------------+------------------------+---------+ - | Host | Port | Status | Leader count | Leader distribution | Partition distribution | Version | - +-------------+------+----------+--------------+----------------------+------------------------+---------+ - | "storaged0" | 9779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.0.0" | - | "storaged1" | 9779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.0.0" | - | "storaged2" | 9779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.0.0" | - +-------------+------+----------+--------------+----------------------+------------------------+---------+ + +-------------+------+-----------+----------+--------------+----------------------+------------------------+---------+ + | Host | Port | HTTP port | Status | Leader count | Leader distribution | Partition distribution | Version | + +-------------+------+-----------+----------+--------------+----------------------+------------------------+---------+ + | "storaged0" | 9779 | 19669 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" | + | "storaged1" | 9779 | 19669 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" | + | "storaged2" | 9779 | 19669 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" | + +-------------+------+-----------+----------+--------------+----------------------+------------------------+---------+ ``` !!! Note diff --git a/docs-2.0/4.deployment-and-installation/2.compile-and-install-nebula-graph/deploy-nebula-graph-cluster.md b/docs-2.0/4.deployment-and-installation/2.compile-and-install-nebula-graph/deploy-nebula-graph-cluster.md index 638ed89eb77..c04d41396e2 100644 --- a/docs-2.0/4.deployment-and-installation/2.compile-and-install-nebula-graph/deploy-nebula-graph-cluster.md +++ b/docs-2.0/4.deployment-and-installation/2.compile-and-install-nebula-graph/deploy-nebula-graph-cluster.md @@ -292,13 +292,13 @@ $ ./nebula-console --addr 192.168.10.111 --port 9669 -u root -p nebula Welcome to Nebula Graph! > SHOW HOSTS; -+------------------+------+----------+--------------+----------------------+------------------------+---------+ -| Host | Port | Status | Leader count | Leader distribution | Partition distribution | Version | -+------------------+------+----------+--------------+----------------------+------------------------+---------+ -| "192.168.10.111" | 9779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.0.0" | -| "192.168.10.112" | 9779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.0.0" | -| "192.168.10.113" | 9779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.0.0" | -| "192.168.10.114" | 9779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.0.0" | -| "192.168.10.115" | 9779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.0.0" | -+------------------+------+----------+--------------+----------------------+------------------------+---------+ ++------------------+------+-----------+----------+--------------+----------------------+------------------------+---------+ +| Host | Port | HTTP port | Status | Leader count | Leader distribution | Partition distribution | Version | ++------------------+------+-----------+----------+--------------+----------------------+------------------------+---------+ +| "192.168.10.111" | 9779 | 19669 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" | +| "192.168.10.112" | 9779 | 19669 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" | +| "192.168.10.113" | 9779 | 19669 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" | +| "192.168.10.114" | 9779 | 19669 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" | +| "192.168.10.115" | 9779 | 19669 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" | ++------------------+------+-----------+----------+--------------+----------------------+------------------------+---------+ ``` diff --git a/docs-2.0/8.service-tuning/load-balance.md b/docs-2.0/8.service-tuning/load-balance.md index ef1e90e9e2c..b7ee5c7fbcf 100644 --- a/docs-2.0/8.service-tuning/load-balance.md +++ b/docs-2.0/8.service-tuning/load-balance.md @@ -29,16 +29,16 @@ After you add new storage hosts into the zone, no partition is deployed on the n ```ngql nebual> SHOW HOSTS; - +------------------+------+----------+--------------+-----------------------------------+------------------------+---------+ - | Host | Port | Status | Leader count | Leader distribution | Partition distribution | Version | - +------------------+------+----------+--------------+-----------------------------------+------------------------+---------+ - | "192.168.10.100" | 9779 | "ONLINE" | 4 | "basketballplayer:4" | "basketballplayer:15" | "3.1.0" | - | "192.168.10.101" | 9779 | "ONLINE" | 8 | "basketballplayer:8" | "basketballplayer:15" | "3.1.0" | - | "192.168.10.102" | 9779 | "ONLINE" | 3 | "basketballplayer:3" | "basketballplayer:15" | "3.1.0" | - | "192.168.10.103" | 9779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" | - | "192.168.10.104" | 9779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" | - | "192.168.10.105" | 9779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" | - +------------------+------+----------+--------------+-----------------------------------+------------------------+---------+ + +------------------+------+-----------+----------+--------------+-----------------------------------+------------------------+---------+ + | Host | Port | HTTP port | Status | Leader count | Leader distribution | Partition distribution | Version | + +------------------+------+-----------+----------+--------------+-----------------------------------+------------------------+---------+ + | "192.168.10.100" | 9779 | 19669 | "ONLINE" | 4 | "basketballplayer:4" | "basketballplayer:15" | "3.1.0" | + | "192.168.10.101" | 9779 | 19669 | "ONLINE" | 8 | "basketballplayer:8" | "basketballplayer:15" | "3.1.0" | + | "192.168.10.102" | 9779 | 19669 | "ONLINE" | 3 | "basketballplayer:3" | "basketballplayer:15" | "3.1.0" | + | "192.168.10.103" | 9779 | 19669 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" | + | "192.168.10.104" | 9779 | 19669 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" | + | "192.168.10.105" | 9779 | 19669 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" | + +------------------+------+-----------+----------+--------------+-----------------------------------+------------------------+---------+ ``` 3. Run `BALANCE IN ZONE` to start a job to balance the distribution of storage partitions in each zone in the current graph space. @@ -76,16 +76,16 @@ After you add new storage hosts into the zone, no partition is deployed on the n ```ngql nebula> SHOW HOSTS; - +------------------+------+----------+--------------+-----------------------------------+------------------------+---------+ - | Host | Port | Status | Leader count | Leader distribution | Partition distribution | Version | - +------------------+------+----------+--------------+-----------------------------------+------------------------+---------+ - | "192.168.10.100" | 9779 | "ONLINE" | 4 | "basketballplayer:4" | "basketballplayer:8" | "3.1.0" | - | "192.168.10.101" | 9779 | "ONLINE" | 8 | "basketballplayer:8" | "basketballplayer:8" | "3.1.0" | - | "192.168.10.102" | 9779 | "ONLINE" | 3 | "basketballplayer:3" | "basketballplayer:8" | "3.1.0" | - | "192.168.10.103" | 9779 | "ONLINE" | 0 | "No valid partition" | "basketballplayer:7" | "3.1.0" | - | "192.168.10.104" | 9779 | "ONLINE" | 0 | "No valid partition" | "basketballplayer:7" | "3.1.0" | - | "192.168.10.105" | 9779 | "ONLINE" | 0 | "No valid partition" | "basketballplayer:7" | "3.1.0" | - +------------------+------+----------+--------------+-----------------------------------+------------------------+---------+ + +------------------+------+-----------+----------+--------------+-----------------------------------+------------------------+---------+ + | Host | Port | HTTP port | Status | Leader count | Leader distribution | Partition distribution | Version | + +------------------+------+-----------+----------+--------------+-----------------------------------+------------------------+---------+ + | "192.168.10.100" | 9779 | 19669 | "ONLINE" | 4 | "basketballplayer:4" | "basketballplayer:8" | "3.1.0" | + | "192.168.10.101" | 9779 | 19669 | "ONLINE" | 8 | "basketballplayer:8" | "basketballplayer:8" | "3.1.0" | + | "192.168.10.102" | 9779 | 19669 | "ONLINE" | 3 | "basketballplayer:3" | "basketballplayer:8" | "3.1.0" | + | "192.168.10.103" | 9779 | 19669 | "ONLINE" | 0 | "No valid partition" | "basketballplayer:7" | "3.1.0" | + | "192.168.10.104" | 9779 | 19669 | "ONLINE" | 0 | "No valid partition" | "basketballplayer:7" | "3.1.0" | + | "192.168.10.105" | 9779 | 19669 | "ONLINE" | 0 | "No valid partition" | "basketballplayer:7" | "3.1.0" | + +------------------+------+-----------+----------+--------------+-----------------------------------+------------------------+---------+ ``` If any subtask fails, run [`RECOVER JOB `](../3.ngql-guide/18.operation-and-maintenance-statements/4.job-statements.md) to restart the balancing. If redoing load balancing does not solve the problem, ask for help in the [Nebula Graph community](https://discuss.nebula-graph.io/). @@ -145,16 +145,16 @@ Run `SHOW HOSTS` to check the balance result. ```ngql nebula> SHOW HOSTS; -+------------------+------+----------+--------------+-----------------------------------+------------------------+---------+ -| Host | Port | Status | Leader count | Leader distribution | Partition distribution | Version | -+------------------+------+----------+--------------+-----------------------------------+------------------------+---------+ -| "192.168.10.100" | 9779 | "ONLINE" | 4 | "basketballplayer:3" | "basketballplayer:8" | "3.0.0" | -| "192.168.10.101" | 9779 | "ONLINE" | 8 | "basketballplayer:3" | "basketballplayer:8" | "3.0.0" | -| "192.168.10.102" | 9779 | "ONLINE" | 3 | "basketballplayer:3" | "basketballplayer:8" | "3.0.0" | -| "192.168.10.103" | 9779 | "ONLINE" | 0 | "basketballplayer:2" | "basketballplayer:7" | "3.0.0" | -| "192.168.10.104" | 9779 | "ONLINE" | 0 | "basketballplayer:2" | "basketballplayer:7" | "3.0.0" | -| "192.168.10.105" | 9779 | "ONLINE" | 0 | "basketballplayer:2" | "basketballplayer:7" | "3.0.0" | -+------------------+------+----------+--------------+-----------------------------------+------------------------+---------+ ++------------------+------+-----------+----------+--------------+-----------------------------------+------------------------+---------+ +| Host | Port | HTTP port | Status | Leader count | Leader distribution | Partition distribution | Version | ++------------------+------+-----------+----------+--------------+-----------------------------------+------------------------+---------+ +| "192.168.10.100" | 9779 | 19669 | "ONLINE" | 4 | "basketballplayer:3" | "basketballplayer:8" | "3.1.0" | +| "192.168.10.101" | 9779 | 19669 | "ONLINE" | 8 | "basketballplayer:3" | "basketballplayer:8" | "3.1.0" | +| "192.168.10.102" | 9779 | 19669 | "ONLINE" | 3 | "basketballplayer:3" | "basketballplayer:8" | "3.1.0" | +| "192.168.10.103" | 9779 | 19669 | "ONLINE" | 0 | "basketballplayer:2" | "basketballplayer:7" | "3.1.0" | +| "192.168.10.104" | 9779 | 19669 | "ONLINE" | 0 | "basketballplayer:2" | "basketballplayer:7" | "3.1.0" | +| "192.168.10.105" | 9779 | 19669 | "ONLINE" | 0 | "basketballplayer:2" | "basketballplayer:7" | "3.1.0" | ++------------------+------+-----------+----------+--------------+-----------------------------------+------------------------+---------+ ``` !!! caution