From d5fe24751b04bb53b418cc1074a96a68413151cb Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Thu, 27 Jan 2022 17:53:23 +0800 Subject: [PATCH] delete zone (#1434) --- docs-2.0/2.quick-start/4.nebula-graph-crud.md | 13 ++++++++++++- docs-2.0/20.appendix/0.FAQ.md | 3 +++ .../9.space-statements/1.create-space.md | 9 ++++----- mkdocs.yml | 3 ++- 4 files changed, 21 insertions(+), 7 deletions(-) diff --git a/docs-2.0/2.quick-start/4.nebula-graph-crud.md b/docs-2.0/2.quick-start/4.nebula-graph-crud.md index 108c6943d7a..47d05400028 100644 --- a/docs-2.0/2.quick-start/4.nebula-graph-crud.md +++ b/docs-2.0/2.quick-start/4.nebula-graph-crud.md @@ -27,15 +27,26 @@ ## 管理 Nebula Graph 集群的 Storage 节点 -首先将 Storage 节点加入 Nebula Graph 集群。更多管理集群命令请参见 [管理逻辑机架(Zone)](../4.deployment-and-installation/5.zone.md)。 +首先将 Storage 节点加入 Nebula Graph 集群。 + + + !!! compatibility 从 3.0.0 版本开始,在配置文件中添加的 Storage 节点无法直接读写,配置文件的作用仅仅是将 Storage 节点注册至 Meta 服务中。必须使用`ADD HOSTS`命令后,才能正常读写 Storage 节点。 +```ngql +ADD HOSTS : [,: ...]; +``` + + 示例: diff --git a/docs-2.0/20.appendix/0.FAQ.md b/docs-2.0/20.appendix/0.FAQ.md index 18ea918c45d..fdc00b5a588 100644 --- a/docs-2.0/20.appendix/0.FAQ.md +++ b/docs-2.0/20.appendix/0.FAQ.md @@ -73,9 +73,12 @@ Nebula Graph {{ nebula.release }} 的数据模型中,由于设计允许图中 从 Nebula Graph 3.0.0 开始,查询语句`LOOKUP`、`GO`、`FETCH`必须用`YIELD`子句指定输出结果。详情请参见[YIELD](../3.ngql-guide/8.clauses-and-options/yield.md)。 + + ### 如何处理错误信息 `To get the property of the vertex in 'v.age', should use the format 'var.tag.prop'` diff --git a/docs-2.0/3.ngql-guide/9.space-statements/1.create-space.md b/docs-2.0/3.ngql-guide/9.space-statements/1.create-space.md index 7851fb281fb..cd4cd447344 100644 --- a/docs-2.0/3.ngql-guide/9.space-statements/1.create-space.md +++ b/docs-2.0/3.ngql-guide/9.space-statements/1.create-space.md @@ -16,11 +16,7 @@ CREATE SPACE [IF NOT EXISTS] ( [replica_factor = ,] vid_type = {FIXED_STRING() | INT[64]} ) - [ON ] [COMMENT = '']; - -: - "zone_name" [,"zone_name" ...] ``` |参数|说明| @@ -30,9 +26,12 @@ CREATE SPACE [IF NOT EXISTS] ( |`partition_num`|指定图空间的分片数量。建议设置为 5 倍的集群硬盘数量。例如集群中有 3 个硬盘,建议设置 15 个分片。默认值为 100。| |`replica_factor`|指定每个分片的副本数量。建议在生产环境中设置为 3,在测试环境中设置为 1。由于需要基于多数表决,副本数量必须是**奇数**。默认值为 1。| |`vid_type`|必选参数。指定点 ID 的数据类型。可选值为`FIXED_STRING()`和`INT64`。`INT`等同于`INT64`。`FIXED_STRING()`表示数据类型为字符串,最大长度为`N`,超出长度会报错;`INT64`表示数据类型为整数。| -|`zone_list`|指定图空间所属的 Zone 列表,将在这些 Zone 中创建分片和对应副本。副本数量不能超过指定 Zone 数量。不指定`zone_list`时,默认属于所有 Zone。详情请参见 [管理逻辑机架(Zone)](../../4.deployment-and-installation/5.zone.md)。| |`COMMENT`|图空间的描述。最大为 256 字节。默认无描述。| + + !!! caution 如果将副本数设置为 1,用户将无法使用 [BALANCE](../../8.service-tuning/load-balance.md) 命令为 Nebula Graph 的存储服务平衡负载或扩容。 diff --git a/mkdocs.yml b/mkdocs.yml index 8322ca75cfd..904e3a46096 100755 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -305,7 +305,7 @@ nav: - 设置企业版 License: 4.deployment-and-installation/deploy-license.md - 管理服务: 4.deployment-and-installation/manage-service.md - 连接服务: 4.deployment-and-installation/connect-to-nebula-graph.md - - 管理逻辑机架(Zone): 4.deployment-and-installation/5.zone.md +# - 管理逻辑机架(Zone): 4.deployment-and-installation/5.zone.md - 升级版本: - 升级 Nebula Graph 版本: 4.deployment-and-installation/3.upgrade-nebula-graph/upgrade-nebula-graph-to-latest.md # - 升级 v2.0.x 至当前版本: 4.deployment-and-installation/3.upgrade-nebula-graph/upgrade-nebula-from-200-to-latest.md @@ -548,6 +548,7 @@ plugins: - CHANGELOG.md - spark-connector/* - nebula-operator/* + - 4.deployment-and-installation/5.zone.md - 4.deployment-and-installation/3.upgrade-nebula-graph/upgrade-nebula-from-200-to-latest.md # Exclude the file with the following file name. # - abc.md