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 memory tracker params #2467

Merged
merged 5 commits into from
Jan 11, 2023
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,16 @@ Graph 服务提供了两份初始配置文件`nebula-graphd.conf.default`和`neb


{{ ent.ent_end }}


## memory tracker 配置

| 名称 | 预设值 | 说明 |
| :------------------- | :------------------------ | :------------------------------------------ |
|`memory_tracker_limit_ratio` |`0.8` |可用内存的百分比,当可用内存低于该值时,NebulaGraph 会停止接受查询。<br/>计算公式:可用内存/(总内存 - 保留内存)。<br/> **注意**:对于混合部署的集群,需要根据实际情况**调小**该参数。例如,当预期 Graphd 只占用 50% 的内存时,该参数的值可设置为小于`0.5`。|
|`memory_tracker_untracked_reserved_memory_mb` |`50`|保留内存的大小,单位:MB。|
|`memory_tracker_detail_log` |`false` | 是否定期生成较详细的内存跟踪日志。当值为`true`时,会定期生成内存跟踪日志。|
|`memory_tracker_detail_log_interval_ms` |`60000`|内存跟踪日志的生成时间间隔,单位:毫秒。仅当`memory_tracker_detail_log`为`true`时,该参数生效。|
|`memory_purge_enabled` |`true` |是否定期开启内存清理功能。当值为`true`时,会定期清理内存。|
|`memory_purge_interval_seconds` |`10` |内存清理的时间间隔,单位:秒。`memory_purge_enabled`为`true`时,该参数生效。|

Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,17 @@ rocksdb options 配置的格式为`{"<option_name>":"<option_value>"}`,多个
{{ ent.ent_end }}


## memory tracker 配置

| 名称 | 预设值 | 说明 |
| :------------------- | :------------------------ | :------------------------------------------ |
|`memory_tracker_limit_ratio` |`0.8` |可用内存的百分比,当可用内存低于该值时,NebulaGraph 会停止接受查询。<br/>计算公式:可用内存/(总内存 - 保留内存)。<br/> **注意**:对于混合部署的集群,需要根据实际情况**调小**该参数。例如,当预期 Graphd 只占用 50% 的内存时,该参数的值可设置为小于`0.5`。|
|`memory_tracker_untracked_reserved_memory_mb` |`50`|保留内存的大小,单位:MB。|
|`memory_tracker_detail_log` |`false` | 是否定期生成较详细的内存跟踪日志。当值为`true`时,会定期生成内存跟踪日志。|
|`memory_tracker_detail_log_interval_ms` |`60000`|内存跟踪日志的生成时间间隔,单位:毫秒。仅当`memory_tracker_detail_log`为`true`时,该参数生效。|
|`memory_purge_enabled` |`true` |是否定期开启内存清理功能。当值为`true`时,会定期清理内存。|
|`memory_purge_interval_seconds` |`10` |内存清理的时间间隔,单位:秒。`memory_purge_enabled`为`true`时,该参数生效。|



## 超级节点处理(出入边数量极多的点)
Expand Down