Skip to content

Commit

Permalink
[IOTDB-6218] Rename storage_query_schema_consensus_free_memory_propor…
Browse files Browse the repository at this point in the history
…tion to datanode_memory_proportion (#114)
  • Loading branch information
CRZbulabula authored Dec 7, 2023
1 parent 74d3884 commit a20b797
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ Temp storage size = WAL storage size + Consensus storage size + Compaction temp
1. WAL

max wal storage size = memtable memory size ÷ wal_min_effective_info_ratio
- memtable memory size is decided by storage_query_schema_consensus_free_memory_proportion, storage_engine_memory_proportion and write_memory_proportion
- memtable memory size is decided by datanode_memory_proportion, storage_engine_memory_proportion and write_memory_proportion
- wal_min_effective_info_ratio is decided by wal_min_effective_info_ratio configuration

> Example: allocate 16G memory for DataNode, config is as below:
> storage_query_schema_consensus_free_memory_proportion=3:3:1:1:2
> datanode_memory_proportion=3:3:1:1:1:1
> storage_engine_memory_proportion=8:2
> write_memory_proportion=19:1
> wal_min_effective_info_ratio=0.1
Expand Down
6 changes: 3 additions & 3 deletions src/UserGuide/Master/Reference/Common-Config-Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,11 @@ Different configuration parameters take effect in the following three ways:

* storage\_query_schema_consensus_free_memory_proportion

|Name| storage\_query\_schema\_consensus\_free\_memory\_proportion |
|Name| data\_node\_memory\_proportion |
|:---:|:-------------------------------------------------------------------------------------------------------------|
|Description| Memory Allocation Ratio: StorageEngine, QueryEngine, SchemaEngine, Consensus and Free Memory |
|Description| Memory Allocation Ratio: StorageEngine, QueryEngine, SchemaEngine, StreamingEngine, Consensus and Free Memory |
|Type| Ratio |
|Default| 3:3:1:1:2 |
|Default| 3:3:1:1:1:1 |
|Effective| After restarting system |

* schema\_memory\_allocate\_proportion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ IoTDB 存储空间=数据存储空间 + 元数据存储空间 + 临时存储空
1. 写前日志

最大写前日志空间占用 = memtable 总内存占用 ÷ 最小有效信息占比
- memtable 总内存占用和 storage_query_schema_consensus_free_memory_proportion、storage_engine_memory_proportion、write_memory_proportion 三个参数有关
- memtable 总内存占用和 datanode_memory_proportion、storage_engine_memory_proportion、write_memory_proportion 三个参数有关
- 最小有效信息占比由 wal_min_effective_info_ratio 决定

> 示例:为 IoTDB 分配 16G 内存,配置文件如下
> storage_query_schema_consensus_free_memory_proportion=3:3:1:1:2
> datanode_memory_proportion=3:3:1:1:1:1
> storage_engine_memory_proportion=8:2
> write_memory_proportion=19:1
> wal_min_effective_info_ratio=0.1
Expand Down
6 changes: 3 additions & 3 deletions src/zh/UserGuide/Master/Reference/Common-Config-Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,11 @@ IoTDB ConfigNode 和 DataNode 的公共配置参数位于 `conf` 目录下。

* storage\_query_schema_consensus_free_memory_proportion

|名字| storage\_query\_schema\_consensus\_free\_memory\_proportion |
|名字| data\_node\_memory\_proportion |
|:---:|:----------------------------------------------------------------------|
|描述| 存储,查询,元数据,共识层,空闲内存比例 |
|描述| 存储,查询,元数据,流处理引擎,共识层,空闲内存比例 |
|类型| Ratio |
|默认值| 3:3:1:1:2 |
|默认值| 3:3:1:1:1:1 |
|改后生效方式| 重启服务生效 |

* schema\_memory\_allocate\_proportion
Expand Down

0 comments on commit a20b797

Please sign in to comment.