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-config-for-graph-and-storage #1895

Merged
merged 2 commits into from
Jun 23, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 4 additions & 0 deletions docs-2.0/3.ngql-guide/9.space-statements/5.drop-space.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

`DROP SPACE`语句用于删除指定图空间以及其中的所有信息。

!!! note

用户可以通过修改 Storage 服务配置文件中`auto_remove_invalid_space`的值,`DROP SPACE`语句可以仅删除指定图空间而保留其中的所有数据。详情参见 [Storage 服务配置](../../5.configurations-and-logs/1.configurations/4.storage-config.md)。
abby-cyber marked this conversation as resolved.
Show resolved Hide resolved

## 前提条件

只有 God 角色的用户可以执行`DROP SPACE`语句。详情请参见[身份验证](../../7.data-security/1.authentication/1.authentication.md)。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Graph 服务提供了两份初始配置文件`nebula-graphd.conf.default`和`neb
| `ws_http_port` | `19669` | HTTP 服务的端口。 |
|`heartbeat_interval_secs` | `10` | 默认心跳间隔。请确保所有服务的`heartbeat_interval_secs`取值相同,否则会导致系统无法正常工作。单位:秒。 |
|`storage_client_timeout_ms`|-| Graph 服务与 Storage 服务的 RPC 连接超时时间。初始配置文件中未设置该参数,使用需手动添加。默认值为`60000`毫秒。|
|`slow_query_threshold_us`|`200000`|定义超过多长时间的查询为慢查询。单位:微秒。|
|`ws_meta_http_port`|`19559`|HTTP 协议监听 Meta 服务的端口,需要和 Meta 服务配置文件中的`ws_http_port`保持一致。|

!!! caution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ Storage 服务提供了两份初始配置文件`nebula-storaged.conf.default`和

| 名称 | 预设值 | 说明 |
| :-- | :----- | :--- |
| `snapshot_part_rate_limit` | `8388608` | Raft leader 向 Raft group 中其它成员同步存量数据时的限速。单位:字节/秒。 |
| `auto_remove_invalid_space` | `true` | 在执行`DROP SPACE`后,会删除指定图空间,该参数设置是否同时删除指定图空间内的所有数据。当值为`true`时,同时删除指定图空间内的所有数据。 |
| `num_io_threads` | `16` | 网络 I/O 线程的数量,用于发送 RPC 请求和接收响应。 |
| `num_worker_threads` | `32` | Storage 的 RPC 服务的工作线程数量。 |
| `max_concurrent_subtasks` | `10` | TaskManager 并发执行子任务的最大个数。 |
| `snapshot_part_rate_limit` | `10485760` | Raft leader 向 Raft group 中其它成员同步存量数据时的限速。单位:字节/秒。 |
| `snapshot_batch_size` | `1048576` | Raft leader 向 Raft group 中其它成员同步存量数据时每批发送的数据量。单位:字节。 |
| `rebuild_index_part_rate_limit` | `4194304` | 重建索引过程中,Raft leader 向 Raft group 中其它成员同步索引数据时的限速。单位:字节/秒。 |
| `rebuild_index_batch_size` | `1048576` | 重建索引过程中,Raft leader 向 Raft group 中其它成员同步索引数据时每批发送的数据量。单位:字节。 |
Expand Down