From a9cf4333cc8833334129f895fe8737deb55f5e65 Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Fri, 28 Jan 2022 16:09:25 +0800 Subject: [PATCH] manage storage hosts (#1068) * manage storage hosts * Update docs-2.0/4.deployment-and-installation/manage-storage-host.md Co-authored-by: randomJoe211 <69501902+randomJoe211@users.noreply.github.com> * Update docs-2.0/4.deployment-and-installation/manage-storage-host.md Co-authored-by: randomJoe211 <69501902+randomJoe211@users.noreply.github.com> * Update docs-2.0/4.deployment-and-installation/manage-storage-host.md Co-authored-by: randomJoe211 <69501902+randomJoe211@users.noreply.github.com> * Update docs-2.0/4.deployment-and-installation/manage-storage-host.md Co-authored-by: randomJoe211 <69501902+randomJoe211@users.noreply.github.com> * Update manage-storage-host.md Co-authored-by: randomJoe211 <69501902+randomJoe211@users.noreply.github.com> --- .../manage-storage-host.md | 23 +++++++++++++++++++ mkdocs.yml | 1 + 2 files changed, 24 insertions(+) create mode 100644 docs-2.0/4.deployment-and-installation/manage-storage-host.md diff --git a/docs-2.0/4.deployment-and-installation/manage-storage-host.md b/docs-2.0/4.deployment-and-installation/manage-storage-host.md new file mode 100644 index 00000000000..7413638f816 --- /dev/null +++ b/docs-2.0/4.deployment-and-installation/manage-storage-host.md @@ -0,0 +1,23 @@ +# Manage Storage hosts + +Starting from Nebula Graph 3.0.0, setting Storage hosts in the configuration files only registers the hosts on the Meta side, but does not add them into the cluster. You must run the `ADD HOSTS` statement to add the Storage hosts. + +## Add Storage hosts + +Add the Storage hosts to a Nebula Graph cluster. + +```ngql +ADD HOSTS : [,: ...]; +``` + +## Drop Storage hosts + +Delete the Storage hosts from cluster. + +!!! note + + You can not delete an in-use Storage host directly. Delete the associated graph space before deleting the Storage host. + +```ngql +DROP HOSTS : [,: ...]; +``` diff --git a/mkdocs.yml b/mkdocs.yml index 3eb158e6300..2a452a2b849 100755 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -307,6 +307,7 @@ nav: - Deploy license: 4.deployment-and-installation/deploy-license.md - Manage Service: 4.deployment-and-installation/manage-service.md - Connect to Service: 4.deployment-and-installation/connect-to-nebula-graph.md + - Manage Storage host: 4.deployment-and-installation/manage-storage-host.md # - Manage zone: 4.deployment-and-installation/5.zone.md - Upgrade: - Upgrade Nebula Graph to the latest version: 4.deployment-and-installation/3.upgrade-nebula-graph/upgrade-nebula-graph-to-latest.md