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

add hint when not enough hosts #2025

Merged
merged 4 commits into from
Jul 22, 2022
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
8 changes: 8 additions & 0 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 @@ -42,6 +42,14 @@ CREATE SPACE [IF NOT EXISTS] <graph_space_name> (

- VID 最大长度必须为`N`,不可任意长度;超过该长度也会报错`The VID must be a 64-bit integer or a string fitting space vertex id length limit.`。

- 如果出现`Host not enough!`的报错,直接原因是线上 Storage Host 的数量少于即将创建的图空间的`replica_factor`的数量。此时,可用`SHOW HOSTS`指令查看判断,出现的情况有:

- 在集群是单 Storage Host 的情况下试图创建多副本(replica_factor)图空间,这时候只能选择创建单副本数的图空间,或者扩容 Storage Host 之后再创建图空间。

- 新创建的集群里 Storage Host 已经被服务发现,但是尚未执行`ADD HOSTS`将其激活,这时候需要通过 Console 连接,执行`SHOW HOSTS`获取被发现了的 Storage Host,然后执行相应的 `ADD HOSTS` 激活,待有足够的 Online Storage Host 之后再尝试创建图空间。

- 有部分 Storage Host 处在非 Online 状态,需要进行进一步排查。

!!! compatibility "历史版本兼容性"

2.5.0 之前的 2.x 版本中,`vid_type`不是必选参数,默认为`FIXED_STRING(8)`。
Expand Down