-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Deprecate config item max-memory
and add items server-memory-quota
and memory-usage-alarm-ratio
#4977
Conversation
/cc @XuHuaiyu |
LGTM |
@@ -278,11 +278,24 @@ TiDB 配置文件比命令行参数支持更多的选项。你可以在 [config/ | |||
+ 默认值:0 | |||
+ 默认值为 0 表示使用机器上所有的 CPU;如果设置成 n,那么 TiDB 会使用 n 个 CPU 数量。 | |||
|
|||
### `max-memory` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可能有用户还在使用这个配置项,废弃这个配置项是否需要说明一下呢?
- 不推荐使用/已不能使用/已被新的配置项替代?
- 从哪个版本废弃的?
tidb-configuration-file.md
Outdated
> | ||
> `server-memory-quota` 目前为实验性特性,不建议在生产环境中使用。 | ||
|
||
+ tidb-server 实例内存的使用限制,单位为字节。(原配置项 `max-memory` 已被该配置项代替) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
原配置项 max-memory
被一个实验特性配置项所替代?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #5009 |
Follow-up: remove the |
/remove-label follow-up |
First-time contributors' checklist
What is changed, added or deleted? (Required)
Deprecate config item
max-memory
and add itemsserver-memory-quota
andmemory-usage-alarm-ratio
(only in dev)max-memory
has been deprecated and useserver-memory-quota
instead now. (only in dev)memory-usage-alarm-ratio
is introduced in this pr pingcap/tidb#18858.Which TiDB version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?
max-memory
and add itemsserver-memory-quota
andmemory-usage-alarm-ratio
#4706Do your changes match any of the following descriptions?