From f4e0aae2473b003298345cad45c8a1c0dba9f277 Mon Sep 17 00:00:00 2001 From: randomJoe211 <69501902+randomJoe211@users.noreply.github.com> Date: Tue, 19 Oct 2021 16:50:58 +0800 Subject: [PATCH] Add rate limit parameters (#1071) --- .../1.configurations/4.storage-config.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs-2.0/5.configurations-and-logs/1.configurations/4.storage-config.md b/docs-2.0/5.configurations-and-logs/1.configurations/4.storage-config.md index 8fc8184706..b457ae9e24 100644 --- a/docs-2.0/5.configurations-and-logs/1.configurations/4.storage-config.md +++ b/docs-2.0/5.configurations-and-logs/1.configurations/4.storage-config.md @@ -13,7 +13,7 @@ Storage服务提供了两份初始配置文件`nebula-storaged.conf.default`和` ## 配置文件参数值说明 -配置文件内没有设置某个参数表示参数使用的是默认值。文件内只预设了部分参数的值,而且两份初始配置文件内的参数值也略有不同,本文的预设值以`nebula-metad.conf.default`为准。 +配置文件内没有设置某个参数表示参数使用的是默认值。文件内只预设了部分参数的值,而且两份初始配置文件内的参数值也略有不同,本文的预设值以`nebula-metad.conf.default`文件为准,其中没有的参数则以`nebula-storaged.conf.production`文件为准。 !!! Note @@ -90,6 +90,19 @@ Storage服务提供了两份初始配置文件`nebula-storaged.conf.default`和` |`rocksdb_filtering_prefix_length` | `12` | 每个key的prefix长度。可选值为`12`(分片ID+点ID)和`16`(分片ID+点ID+TagID/Edge typeID)。单位:字节。 | |`enable_partitioned_index_filter`|- |设置为`true`可以降低bloom过滤器占用的内存大小,但是在某些随机寻道(random-seek)的情况下,可能会降低读取性能。| +## misc配置 + +!!! caution + + 下表中的`snapshot`与Nebula Graph快照是不同的概念,这里的`snapshot`指Raft同步过程中leader上的存量数据。 + +| 名称 | 预设值 | 说明 | +| :-- | :----- | :--- | +| `snapshot_part_rate_limit` | `8388608` | 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中其它成员同步索引数据时每批发送的数据量。单位:字节。 | + ## rocksdb options配置 | 名称 | 预设值 | 说明 |