From 370066603deaa5099e831992b5b379599b80b2b5 Mon Sep 17 00:00:00 2001 From: Wey Gu Date: Tue, 28 Jun 2022 09:56:07 +0800 Subject: [PATCH 1/2] Add hostname example with hyphen --- .../4.deployment-and-installation/manage-storage-host.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 index a79fd802977..fdc7c090b01 100644 --- a/docs-2.0/4.deployment-and-installation/manage-storage-host.md +++ b/docs-2.0/4.deployment-and-installation/manage-storage-host.md @@ -7,7 +7,7 @@ 向集群中增加 Storage 主机。 ```ngql -ADD HOSTS : [,: ...]; +ADD HOSTS : [,: ...]; ``` !!! note @@ -15,6 +15,8 @@ ADD HOSTS : [,: ...]; - 增加 Storage 主机在**下一个**心跳周期之后才能生效,为确保数据同步,请等待 2 个心跳周期(20 秒),然后执行`SHOW HOSTS`查看是否在线。 - IP地址和端口请和配置文件中的设置保持一致,例如单机部署的默认为`127.0.0.1:9779`。 + + - 如果 hostname 部分带有 `-` ,需要用引号包裹,例如 `ADD HOSTS "foo-bar":9779`。 ## 删除 Storage 主机 @@ -25,5 +27,5 @@ ADD HOSTS : [,: ...]; 无法直接删除正在使用的 Storage 主机,需要先删除关联的图空间,才能删除 Storage 主机。 ```ngql -DROP HOSTS : [,: ...]; +DROP HOSTS : [,: ...]; ``` From f623c8a2572820d7234ebabf47a965a063cc4ff3 Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Tue, 28 Jun 2022 14:13:46 +0800 Subject: [PATCH 2/2] Update manage-storage-host.md --- .../4.deployment-and-installation/manage-storage-host.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 index fdc7c090b01..9b47e3c6efc 100644 --- a/docs-2.0/4.deployment-and-installation/manage-storage-host.md +++ b/docs-2.0/4.deployment-and-installation/manage-storage-host.md @@ -7,7 +7,8 @@ 向集群中增加 Storage 主机。 ```ngql -ADD HOSTS : [,: ...]; +ADD HOSTS : [,: ...]; +ADD HOSTS "": [,"": ...]; ``` !!! note @@ -16,7 +17,7 @@ ADD HOSTS : [,: ...]; - IP地址和端口请和配置文件中的设置保持一致,例如单机部署的默认为`127.0.0.1:9779`。 - - 如果 hostname 部分带有 `-` ,需要用引号包裹,例如 `ADD HOSTS "foo-bar":9779`。 + - 使用域名时,需要用引号包裹,例如 `ADD HOSTS "foo-bar":9779`。 ## 删除 Storage 主机 @@ -27,5 +28,6 @@ ADD HOSTS : [,: ...]; 无法直接删除正在使用的 Storage 主机,需要先删除关联的图空间,才能删除 Storage 主机。 ```ngql -DROP HOSTS : [,: ...]; +DROP HOSTS : [,: ...]; +DROP HOSTS "": [,"": ...]; ```