Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opts-for-add-hosts #2118

Merged
merged 2 commits into from
Jun 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 24 additions & 4 deletions docs-2.0/4.deployment-and-installation/manage-storage-host.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ Starting from NebulaGraph 3.0.0, setting Storage hosts in the configuration file

NebulaGraph Cloud clusters add Storage hosts automatically. Cloud users do not need to manually run `ADD HOSTS`.

## Prerequisites

- [You have connected to the NebulaGraph database](connect-to-nebula-graph.md).

## Add Storage hosts

Add the Storage hosts to a NebulaGraph cluster.

```ngql
ADD HOSTS <ip>:<port> [,<ip>:<port> ...];
ADD HOSTS "<hostname>":<port> [,"<hostname>":<port> ...];
nebula> ADD HOSTS <ip>:<port> [,<ip>:<port> ...];
nebula> ADD HOSTS "<hostname>":<port> [,"<hostname>":<port> ...];
```

!!! note
Expand All @@ -34,6 +38,22 @@ Delete the Storage hosts from cluster.
You can not delete an in-use Storage host directly. Delete the associated graph space before deleting the Storage host.

```ngql
DROP HOSTS <ip>:<port> [,<ip>:<port> ...];
DROP HOSTS "<hostname>":<port> [,"<hostname>":<port> ...];
nebula> DROP HOSTS <ip>:<port> [,<ip>:<port> ...];
nebula> DROP HOSTS "<hostname>":<port> [,"<hostname>":<port> ...];
```


## View Storage hosts

View the Storage hosts in the cluster.

```ngql
nebula> SHOW HOSTS STORAGE;
+-------------+------+----------+-----------+--------------+----------------------+
| Host | Port | Status | Role | Git Info Sha | Version |
+-------------+------+----------+-----------+--------------+----------------------+
| "storaged0" | 9779 | "ONLINE" | "STORAGE" | "3ba41bd" | "{{nebula.release}}" |
| "storaged1" | 9779 | "ONLINE" | "STORAGE" | "3ba41bd" | "{{nebula.release}}" |
| "storaged2" | 9779 | "ONLINE" | "STORAGE" | "3ba41bd" | "{{nebula.release}}" |
+-------------+------+----------+-----------+--------------+--------------- ------+
```