From 1fd10c27ac999dd145e362574490c5fdcaabf3bc Mon Sep 17 00:00:00 2001 From: Han Fei Date: Mon, 25 Mar 2024 17:51:17 +0100 Subject: [PATCH 1/2] add doc for cgroups_memory_observer_wait_time --- docs/en/guides/sre/keeper/index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/en/guides/sre/keeper/index.md b/docs/en/guides/sre/keeper/index.md index b26139e0e87..fdf08f29adf 100644 --- a/docs/en/guides/sre/keeper/index.md +++ b/docs/en/guides/sre/keeper/index.md @@ -43,6 +43,7 @@ ClickHouse Keeper can be used as a standalone replacement for ZooKeeper or as an `False` by default. - `max_memory_usage_soft_limit` — Soft limit in bytes of keeper max memory usage. Default value is `max_memory_usage_soft_limit_ratio` * `physical_memory_amount`. - `max_memory_usage_soft_limit_ratio` — If `max_memory_usage_soft_limit` is not set or set to zero, we use this value to define the default soft limit. The default value is 0.9. +- `cgroups_memory_observer_wait_time` — If `max_memory_usage_soft_limit` is not set or set to zero, we use this interval to obeserve the amount of physical memory. Once the change of memory amount is observed, we will recalculate the memory soft limit of Keeper by `max_memory_usage_soft_limit_ratio`. The default value is 15 seconds. - `http_control` — Configuration of [HTTP control](#http-control) interface. Other common parameters are inherited from the ClickHouse server config (`listen_host`, `logger`, and so on). @@ -1201,4 +1202,4 @@ While ClickHouse Keeper aims to be fully compatible with ZooKeeper, there are so - [`removeWatch`](https://zookeeper.apache.org/doc/r3.9.1/apidocs/zookeeper-server/org/apache/zookeeper/ZooKeeper.html#removeWatches(java.lang.String,org.apache.zookeeper.Watcher,org.apache.zookeeper.Watcher.WatcherType,boolean)) and [`removeAllWatches`](https://zookeeper.apache.org/doc/r3.9.1/apidocs/zookeeper-server/org/apache/zookeeper/ZooKeeper.html#removeAllWatches(java.lang.String,org.apache.zookeeper.Watcher.WatcherType,boolean)) are not supported - `setWatches` is not supported - Creating [`CONTAINER`](https://zookeeper.apache.org/doc/r3.5.1-alpha/api/org/apache/zookeeper/CreateMode.html) type znodes is not supported -- [`SASL authentication`](https://cwiki.apache.org/confluence/display/ZOOKEEPER/Zookeeper+and+SASL) is not supported \ No newline at end of file +- [`SASL authentication`](https://cwiki.apache.org/confluence/display/ZOOKEEPER/Zookeeper+and+SASL) is not supported From 03e57e92ea25f4fc9078e532d2cb40bdbc0632b9 Mon Sep 17 00:00:00 2001 From: Johnny <9611008+johnnymatthews@users.noreply.github.com> Date: Wed, 27 Mar 2024 14:32:56 -0300 Subject: [PATCH 2/2] Minor grammar fix. --- docs/en/guides/sre/keeper/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/guides/sre/keeper/index.md b/docs/en/guides/sre/keeper/index.md index fdf08f29adf..2678eb5942f 100644 --- a/docs/en/guides/sre/keeper/index.md +++ b/docs/en/guides/sre/keeper/index.md @@ -43,7 +43,7 @@ ClickHouse Keeper can be used as a standalone replacement for ZooKeeper or as an `False` by default. - `max_memory_usage_soft_limit` — Soft limit in bytes of keeper max memory usage. Default value is `max_memory_usage_soft_limit_ratio` * `physical_memory_amount`. - `max_memory_usage_soft_limit_ratio` — If `max_memory_usage_soft_limit` is not set or set to zero, we use this value to define the default soft limit. The default value is 0.9. -- `cgroups_memory_observer_wait_time` — If `max_memory_usage_soft_limit` is not set or set to zero, we use this interval to obeserve the amount of physical memory. Once the change of memory amount is observed, we will recalculate the memory soft limit of Keeper by `max_memory_usage_soft_limit_ratio`. The default value is 15 seconds. +- `cgroups_memory_observer_wait_time`—If `max_memory_usage_soft_limit` is not set or is set to `0`, we use this interval to observe the amount of physical memory. Once the memory amount changes, we will recalculate Keeper's memory soft limit by `max_memory_usage_soft_limit_ratio`. The default value is 15 seconds. - `http_control` — Configuration of [HTTP control](#http-control) interface. Other common parameters are inherited from the ClickHouse server config (`listen_host`, `logger`, and so on).