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

Dynamically configure TiKV according to CPU and memory limits #35

Closed
tennix opened this issue Aug 20, 2018 · 1 comment
Closed

Dynamically configure TiKV according to CPU and memory limits #35

tennix opened this issue Aug 20, 2018 · 1 comment
Labels
status/help-wanted Extra attention is needed

Comments

@tennix
Copy link
Member

tennix commented Aug 20, 2018

TiKV uses CPU and memory it sees to auto-configure block cache and other parameters if users don't configure these parameters. But CPU and memory upper bound in a Docker container are the same as the host machine regardless of the resources limit it has. So if users set CPU and memory limits for TiKV, TiKV would misconfigure itself.
We need to configure TiKV according to the actual CPU and memory limits. For example, Raft defaultcf block cache size needs to be set to 30%~50% of TiKV memory limits.

@tennix tennix added the status/help-wanted Extra attention is needed label Aug 20, 2018
@tennix tennix mentioned this issue Dec 6, 2018
@tennix
Copy link
Member Author

tennix commented Jan 2, 2019

Since it's difficult to do the arithmetic calculation in Helm Chart, we've exposed the cpu/memory related settings to values.yaml in #252

@tennix tennix closed this as completed Jan 2, 2019
yahonda pushed a commit that referenced this issue Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/help-wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant