Skip to content

Commit

Permalink
fix-show-hosts-return-result (#1657)
Browse files Browse the repository at this point in the history
* fix-show-hosts-return-result

* Update 6.show-hosts.md
  • Loading branch information
abby-cyber authored Sep 28, 2022
1 parent dfe66d6 commit d6c8025
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 44 deletions.
6 changes: 3 additions & 3 deletions docs-2.0/2.quick-start/3.1add-storage-hosts.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ You have [connected to NebulaGraph](3.connect-to-nebula-graph.md).
+------------------+------+-----------+----------+--------------+---------------------- +------------------------+---------+
| 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" |
| "192.168.10.100" | 9779 | 19779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" |
| "192.168.10.101" | 9779 | 19779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" |
| "192.168.10.102" | 9779 | 19779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" |
+------------------+------+-----------+----------+--------------+---------------------- +------------------------+---------+
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ nebula> SHOW HOSTS;
+-------------+-------+-----------+----------+--------------+----------------------------------+------------------------------+---------+
| 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" |
| "storaged0" | 9779 | 19779 | "ONLINE" | 8 | "docs:5, basketballplayer:3" | "docs:5, basketballplayer:3" | "3.1.0" |
| "storaged1" | 9779 | 19779 | "ONLINE" | 9 | "basketballplayer:4, docs:5" | "docs:5, basketballplayer:4" | "3.1.0" |
| "storaged2" | 9779 | 19779 | "ONLINE" | 8 | "basketballplayer:3, docs:5" | "docs:5, basketballplayer:3" | "3.1.0" |
+-------------+-------+-----------+----------+--------------+----------------------------------+------------------------------+---------+
nebula> SHOW HOSTS GRAPH;
Expand Down
12 changes: 6 additions & 6 deletions docs-2.0/3.ngql-guide/9.space-statements/1.create-space.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ nebula> SHOW HOSTS;
+-------------+------+-----------+----------+--------------+--------------------------------+--------------------------------+---------+
| 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" |
| "storaged0" | 9779 | 19779 | "ONLINE" | 8 | "basketballplayer:3, test:5" | "basketballplayer:10, test:10" | "3.1.0" |
| "storaged1" | 9779 | 19779 | "ONLINE" | 9 | "basketballplayer:4, test:5" | "basketballplayer:10, test:10" | "3.1.0" |
| "storaged2" | 9779 | 19779 | "ONLINE" | 3 | "basketballplayer:3" | "basketballplayer:10, test:10" | "3.1.0" |
+-------------+------+-----------+----------+--------------+--------------------------------+--------------------------------+---------+
```

Expand All @@ -120,8 +120,8 @@ nebula> SHOW HOSTS;
+-------------+------+-----------+----------+--------------+--------------------------------+--------------------------------+---------+
| 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" |
| "storaged0" | 9779 | 19779 | "ONLINE" | 7 | "basketballplayer:3, test:4" | "basketballplayer:10, test:10" | "3.1.0" |
| "storaged1" | 9779 | 19779 | "ONLINE" | 7 | "basketballplayer:4, test:3" | "basketballplayer:10, test:10" | "3.1.0" |
| "storaged2" | 9779 | 19779 | "ONLINE" | 6 | "basketballplayer:3, test:3" | "basketballplayer:10, test:10" | "3.1.0" |
+-------------+------+-----------+----------+--------------+--------------------------------+--------------------------------+---------+
```
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ Using Docker Compose can quickly deploy NebulaGraph services based on the prepar
+-------------+------+-----------+----------+--------------+----------------------+------------------------+---------+
| 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" |
| "storaged0" | 9779 | 19779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" |
| "storaged1" | 9779 | 19779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" |
| "storaged2" | 9779 | 19779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" |
+-------------+------+-----------+----------+--------------+----------------------+------------------------+---------+
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,10 @@ Welcome to NebulaGraph!
+------------------+------+-----------+----------+--------------+----------------------+------------------------+---------+
| 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" |
| "192.168.10.111" | 9779 | 19779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" |
| "192.168.10.112" | 9779 | 19779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" |
| "192.168.10.113" | 9779 | 19779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" |
| "192.168.10.114" | 9779 | 19779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" |
| "192.168.10.115" | 9779 | 19779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" |
+------------------+------+-----------+----------+--------------+----------------------+------------------------+---------+
```
48 changes: 24 additions & 24 deletions docs-2.0/8.service-tuning/load-balance.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ After you add new storage hosts into the cluster, no partition is deployed on th
+-----------------+------+-----------+----------+--------------+-----------------------+------------------------+-------------+
| Host | Port | HTTP port | Status | Leader count | Leader distribution | Partition distribution | Version |
+-----------------+------+-----------+----------+--------------+-----------------------+------------------------+-------------+
| "192.168.8.101" | 9779 | 19669 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0-ent" |
| "192.168.8.100" | 9779 | 19669 | "ONLINE" | 15 | "basketballplayer:15" | "basketballplayer:15" | "3.1.0-ent" |
| "192.168.8.101" | 9779 | 19779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0-ent" |
| "192.168.8.100" | 9779 | 19779 | "ONLINE" | 15 | "basketballplayer:15" | "basketballplayer:15" | "3.1.0-ent" |
+-----------------+------+-----------+----------+--------------+-----------------------+------------------------+-------------+
```
Expand Down Expand Up @@ -77,8 +77,8 @@ After you add new storage hosts into the cluster, no partition is deployed on th
+-----------------+------+-----------+----------+--------------+----------------------+------------------------+-------------+
| Host | Port | HTTP port | Status | Leader count | Leader distribution | Partition distribution | Version |
+-----------------+------+-----------+----------+--------------+----------------------+------------------------+-------------+
| "192.168.8.101" | 9779 | 19669 | "ONLINE" | 7 | "basketballplayer:7" | "basketballplayer:7" | "3.1.0-ent" |
| "192.168.8.100" | 9779 | 19669 | "ONLINE" | 8 | "basketballplayer:8" | "basketballplayer:8" | "3.1.0-ent" |
| "192.168.8.101" | 9779 | 19779 | "ONLINE" | 7 | "basketballplayer:7" | "basketballplayer:7" | "3.1.0-ent" |
| "192.168.8.100" | 9779 | 19779 | "ONLINE" | 8 | "basketballplayer:8" | "basketballplayer:8" | "3.1.0-ent" |
+-----------------+------+-----------+----------+--------------+----------------------+------------------------+-------------+
```

Expand Down Expand Up @@ -118,8 +118,8 @@ nebula> SHOW HOSTS;
+-----------------+------+-----------+----------+--------------+-----------------------+------------------------+-------------+
| Host | Port | HTTP port | Status | Leader count | Leader distribution | Partition distribution | Version |
+-----------------+------+-----------+----------+--------------+-----------------------+------------------------+-------------+
| "192.168.8.101" | 9779 | 19669 | "ONLINE" | 15 | "basketballplayer:15" | "basketballplayer:15" | "3.1.0-ent" |
| "192.168.8.100" | 9779 | 19669 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0-ent" |
| "192.168.8.101" | 9779 | 19779 | "ONLINE" | 15 | "basketballplayer:15" | "basketballplayer:15" | "3.1.0-ent" |
| "192.168.8.100" | 9779 | 19779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0-ent" |
+-----------------+------+-----------+----------+--------------+-----------------------+------------------------+-------------+
```

Expand Down Expand Up @@ -153,12 +153,12 @@ After you add new storage hosts into the zone, no partition is deployed on the n
+------------------+------+-----------+----------+--------------+-----------------------------------+------------------------+---------+
| 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" |
| "192.168.10.100" | 9779 | 19779 | "ONLINE" | 4 | "basketballplayer:4" | "basketballplayer:15" | "3.1.0" |
| "192.168.10.101" | 9779 | 19779 | "ONLINE" | 8 | "basketballplayer:8" | "basketballplayer:15" | "3.1.0" |
| "192.168.10.102" | 9779 | 19779 | "ONLINE" | 3 | "basketballplayer:3" | "basketballplayer:15" | "3.1.0" |
| "192.168.10.103" | 9779 | 19779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" |
| "192.168.10.104" | 9779 | 19779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" |
| "192.168.10.105" | 9779 | 19779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.1.0" |
+------------------+------+-----------+----------+--------------+-----------------------------------+------------------------+---------+
```
Expand Down Expand Up @@ -200,12 +200,12 @@ After you add new storage hosts into the zone, no partition is deployed on the n
+------------------+------+-----------+----------+--------------+-----------------------------------+------------------------+---------+
| 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" |
| "192.168.10.100" | 9779 | 19779 | "ONLINE" | 4 | "basketballplayer:4" | "basketballplayer:8" | "3.1.0" |
| "192.168.10.101" | 9779 | 19779 | "ONLINE" | 8 | "basketballplayer:8" | "basketballplayer:8" | "3.1.0" |
| "192.168.10.102" | 9779 | 19779 | "ONLINE" | 3 | "basketballplayer:3" | "basketballplayer:8" | "3.1.0" |
| "192.168.10.103" | 9779 | 19779 | "ONLINE" | 0 | "No valid partition" | "basketballplayer:7" | "3.1.0" |
| "192.168.10.104" | 9779 | 19779 | "ONLINE" | 0 | "No valid partition" | "basketballplayer:7" | "3.1.0" |
| "192.168.10.105" | 9779 | 19779 | "ONLINE" | 0 | "No valid partition" | "basketballplayer:7" | "3.1.0" |
+------------------+------+-----------+----------+--------------+-----------------------------------+------------------------+---------+
```
Expand Down Expand Up @@ -271,12 +271,12 @@ nebula> SHOW HOSTS;
+------------------+------+-----------+----------+--------------+-----------------------------------+------------------------+---------+
| 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" |
| "192.168.10.100" | 9779 | 19779 | "ONLINE" | 4 | "basketballplayer:3" | "basketballplayer:8" | "3.1.0" |
| "192.168.10.101" | 9779 | 19779 | "ONLINE" | 8 | "basketballplayer:3" | "basketballplayer:8" | "3.1.0" |
| "192.168.10.102" | 9779 | 19779 | "ONLINE" | 3 | "basketballplayer:3" | "basketballplayer:8" | "3.1.0" |
| "192.168.10.103" | 9779 | 19779 | "ONLINE" | 0 | "basketballplayer:2" | "basketballplayer:7" | "3.1.0" |
| "192.168.10.104" | 9779 | 19779 | "ONLINE" | 0 | "basketballplayer:2" | "basketballplayer:7" | "3.1.0" |
| "192.168.10.105" | 9779 | 19779 | "ONLINE" | 0 | "basketballplayer:2" | "basketballplayer:7" | "3.1.0" |
+------------------+------+-----------+----------+--------------+-----------------------------------+------------------------+---------+
```

Expand Down

0 comments on commit d6c8025

Please sign in to comment.