-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate figures to OSS * Delete 1.what-is-br.md * Update explorer-console.md * Delete explorer-console.md * Create explorer-console.md * Update explorer-console.md * optimize quick start
- Loading branch information
1 parent
832a4a9
commit 0ee0e42
Showing
7 changed files
with
63 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Register the Storage Service | ||
|
||
When connecting to Nebula Graph for the first time, you have to add the Storage hosts, and confirm that all the hosts are online. | ||
|
||
!!! compatibility | ||
|
||
- Starting from Nebula Graph 3.0.0, you have to run `ADD HOSTS` before reading or writing data into the Storage Service. | ||
- In earlier versions, `ADD HOSTS` is neither needed nor supported. | ||
|
||
## Prerequisites | ||
|
||
You have [connnected to Nebula Graph](3.connect-to-nebula-graph.md). | ||
|
||
## Steps | ||
|
||
1. Add the Storage hosts. | ||
|
||
Run the following command to add hosts: | ||
|
||
```ngql | ||
ADD HOSTS <ip>:<port> [,<ip>:<port> ...]; | ||
``` | ||
|
||
<!-- | ||
```ngql | ||
ADD HOSTS <ip>:<port> [,<ip>:<port> ...] [INTO NEW ZONE "<new_zone_name>"]; | ||
``` | ||
--> | ||
|
||
Example: | ||
|
||
```ngql | ||
nebula> ADD HOSTS 192.168.10.100:9779, 192.168.10.101:9779, 192.168.10.102:9779; | ||
``` | ||
|
||
2. Check the status of the hosts to make sure that they are all online. | ||
|
||
```ngql | ||
nebula> SHOW HOSTS; | ||
+------------------+------+-----------+----------+--------------+---------------------- +------------------------+---------+ | ||
| 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" | | ||
+------------------+------+-----------+----------+--------------+---------------------- +------------------------+---------+ | ||
``` | ||
|
||
The `Status` column of the result above shows that all Storage hosts are online. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters