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

Clickhouse doesn't respect cpu and memory limits #110

Open
diafour opened this issue Nov 1, 2018 · 1 comment
Open

Clickhouse doesn't respect cpu and memory limits #110

diafour opened this issue Nov 1, 2018 · 1 comment

Comments

@diafour
Copy link
Contributor

diafour commented Nov 1, 2018

Relevant issues:
ClickHouse/ClickHouse#2261
ClickHouse/ClickHouse#1531

Clickhouse do not respect limits for cpu and memory and gets restarted by Kubernetes constantly.

Workaround 1: use the whole node for clickhouse — fix cpu and memory problems

Workaround 2: to limit the memory use these settings:
max_memory_usage_for_all_queries
use_uncompressed_cache
merge_tree_max_rows_to_use_cache

There is no settings for number of cpu cores until ClickHouse/ClickHouse#2261
is fixed.

Need a note about these settings usage in README, NOTES.txt and values.yaml.

@rafagonc
Copy link

In the clickhouse-config config map you can configure your database to limit the maximum RAM usage
in users.xml yandex -> profiles -> default -> max_memory usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants