Skip to content

Commit

Permalink
delete zone (#1434)
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper-lzy authored Jan 27, 2022
1 parent c6e13fe commit d5fe247
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
13 changes: 12 additions & 1 deletion docs-2.0/2.quick-start/4.nebula-graph-crud.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,26 @@

## 管理 Nebula Graph 集群的 Storage 节点

首先将 Storage 节点加入 Nebula Graph 集群。更多管理集群命令请参见 [管理逻辑机架(Zone)](../4.deployment-and-installation/5.zone.md)
首先将 Storage 节点加入 Nebula Graph 集群。

<!--
更多管理集群命令请参见 [管理逻辑机架(Zone)](../4.deployment-and-installation/5.zone.md)。
-->


!!! compatibility

从 3.0.0 版本开始,在配置文件中添加的 Storage 节点无法直接读写,配置文件的作用仅仅是将 Storage 节点注册至 Meta 服务中。必须使用`ADD HOSTS`命令后,才能正常读写 Storage 节点。

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

<!--
```ngql
ADD HOSTS <ip>:<port> [,<ip>:<port> ...] [INTO NEW ZONE "<new_zone_name>"];
```
-->

示例:

Expand Down
3 changes: 3 additions & 0 deletions docs-2.0/20.appendix/0.FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<!--
### 如何处理错误信息 `Zone not enough!`
从 3.0.0 版本开始,在配置文件中添加的 Storage 节点无法直接读写,配置文件的作用仅仅是将 Storage 节点注册至 Meta 服务中。必须使用`ADD HOSTS`命令后,才能正常读写 Storage 节点。详情参见[管理逻辑机架(Zone)](../4.deployment-and-installation/5.zone.md)。
-->


### 如何处理错误信息 `To get the property of the vertex in 'v.age', should use the format 'var.tag.prop'`

Expand Down
9 changes: 4 additions & 5 deletions docs-2.0/3.ngql-guide/9.space-statements/1.create-space.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ CREATE SPACE [IF NOT EXISTS] <graph_space_name> (
[replica_factor = <replica_number>,]
vid_type = {FIXED_STRING(<N>) | INT[64]}
)
[ON <zone_list>]
[COMMENT = '<comment>'];
<zone_list>:
"zone_name" [,"zone_name" ...]
```

|参数|说明|
Expand All @@ -30,9 +26,12 @@ CREATE SPACE [IF NOT EXISTS] <graph_space_name> (
|`partition_num`|指定图空间的分片数量。建议设置为 5 倍的集群硬盘数量。例如集群中有 3 个硬盘,建议设置 15 个分片。默认值为 100。|
|`replica_factor`|指定每个分片的副本数量。建议在生产环境中设置为 3,在测试环境中设置为 1。由于需要基于多数表决,副本数量必须是**奇数**。默认值为 1。|
|`vid_type`|必选参数。指定点 ID 的数据类型。可选值为`FIXED_STRING(<N>)``INT64``INT`等同于`INT64``FIXED_STRING(<N>)`表示数据类型为字符串,最大长度为`N`,超出长度会报错;`INT64`表示数据类型为整数。|
|`zone_list`|指定图空间所属的 Zone 列表,将在这些 Zone 中创建分片和对应副本。副本数量不能超过指定 Zone 数量。不指定`zone_list`时,默认属于所有 Zone。详情请参见 [管理逻辑机架(Zone)](../../4.deployment-and-installation/5.zone.md)|
|`COMMENT`|图空间的描述。最大为 256 字节。默认无描述。|

<!--
|`zone_list`|指定图空间所属的 Zone 列表,将在这些 Zone 中创建分片和对应副本。副本数量不能超过指定 Zone 数量。不指定`zone_list`时,默认属于所有 Zone。详情请参见 [管理逻辑机架(Zone)](../../4.deployment-and-installation/5.zone.md)。|
-->

!!! caution

如果将副本数设置为 1,用户将无法使用 [BALANCE](../../8.service-tuning/load-balance.md) 命令为 Nebula Graph 的存储服务平衡负载或扩容。
Expand Down
3 changes: 2 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d5fe247

Please sign in to comment.