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

update #887

Merged
merged 1 commit into from
Aug 20, 2021
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
10 changes: 9 additions & 1 deletion docs-2.0/8.service-tuning/compaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ Nebula Graph有两种类型的`Compaction`操作:自动`Compaction`和全量`C

## 自动`Compaction`

自动`Compaction`是在系统读取数据、写入数据或系统重启时自动触发`Compaction`操作,提升短时间内的读取性能。默认情况下,自动`Compaction`是开启状态,可能在业务高峰期触发,导致意外抢占IO影响业务。如果需要完全手动控制`Compaction`操作,用户可以关闭自动`Compaction`。
自动`Compaction`是在系统读取数据、写入数据或系统重启时自动触发`Compaction`操作,提升短时间内的读取性能。默认情况下,自动`Compaction`是开启状态,可能在业务高峰期触发,导致意外抢占IO影响业务。

<!--
如果需要完全手动控制`Compaction`操作,用户可以关闭自动`Compaction`。

### 关闭自动`Compaction`

Expand Down Expand Up @@ -52,6 +55,7 @@ nebula> SHOW CONFIGS STORAGE;
+-----------+-------------------------------------+-------+-----------+--------------------------------------------------------------------------------------------------------------------------------------+
...
```
-->

## 全量`Compaction`

Expand All @@ -76,13 +80,17 @@ nebula> SHOW JOB <job_id>;

为保证Nebula Graph的性能,请参考如下操作建议:

<!--
- 数据写入时为避免浪费IO,请在大量数据写入前关闭自动`Compaction`。详情请参见[关闭自动`Compaction`](#compaction_2)。
-->

- 数据导入完成后,请执行`SUBMIT JOB COMPACT`。

- 业务低峰期(例如凌晨)执行`SUBMIT JOB COMPACT`。

<!--
- 白天时设置`disable_auto_compactions`为`false`,提升短时间内的读取性能。
-->

- 为控制`Compaction`的读写速率,请在配置文件`nebula-storaged.conf`中设置如下两个参数:

Expand Down