From ba72b68b79c24fb2a4a98ccdfb1e933a56d8133f Mon Sep 17 00:00:00 2001 From: Slach Date: Wed, 20 Nov 2024 00:50:45 +0400 Subject: [PATCH] fix 22.x low memory configuration Signed-off-by: Slach --- test/integration/dynamic_settings.sh | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/test/integration/dynamic_settings.sh b/test/integration/dynamic_settings.sh index e4c5363c..8f2d8693 100755 --- a/test/integration/dynamic_settings.sh +++ b/test/integration/dynamic_settings.sh @@ -570,7 +570,7 @@ cat < /etc/clickhouse-server/config.d/low_memory_in_configd.xml EOT -elif [[ "${CLICKHOUSE_VERSION}" =~ ^2[1]\. ]]; then +elif [[ "${CLICKHOUSE_VERSION}" =~ ^21\. ]]; then cat < /etc/clickhouse-server/users.d/low_memory_in_usersd.xml @@ -594,6 +594,30 @@ cat < /etc/clickhouse-server/config.d/low_memory_in_configd.xml EOT +elif [[ "${CLICKHOUSE_VERSION}" =~ ^22\. ]]; then + +cat < /etc/clickhouse-server/users.d/low_memory_in_usersd.xml + + + + 2 + 1 + 1 + 1 + 2 + + + +EOT + +cat < /etc/clickhouse-server/config.d/low_memory_in_configd.xml + + 0 + 0 + round_robin + +EOT + else cat < /etc/clickhouse-server/config.d/low_memory_in_configd.xml