Skip to content

Commit

Permalink
fix 20.x low memory configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Slach <[email protected]>
  • Loading branch information
Slach committed Nov 19, 2024
1 parent 79f43b2 commit f9fe0ef
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion test/integration/dynamic_settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,31 @@ EOT
fi


if [[ "${CLICKHOUSE_VERSION}" =~ ^2[0]\.[1-3] ]]; then

if [[ "${CLICKHOUSE_VERSION}" =~ ^2[0]\. ]]; then
cat <<EOT > /etc/clickhouse-server/users.d/low_memory_in_usersd.xml
<yandex>
<profiles>
<default>
<background_pool_size>2</background_pool_size>
</default>
</profiles>
</yandex>
EOT

cat <<EOT > /etc/clickhouse-server/config.d/low_memory_in_configd.xml
<yandex>
<tables_loader_foreground_pool_size>0</tables_loader_foreground_pool_size>
<tables_loader_background_pool_size>0</tables_loader_background_pool_size>
<background_message_broker_schedule_pool_size>1</background_message_broker_schedule_pool_size>
<background_common_pool_size>2</background_common_pool_size>
<background_fetches_pool_size>1</background_fetches_pool_size>
<background_merges_mutations_scheduling_policy>round_robin</background_merges_mutations_scheduling_policy>
<background_merges_mutations_concurrency_ratio>2</background_merges_mutations_concurrency_ratio>
</yandex>
EOT

elif [[ "${CLICKHOUSE_VERSION}" =~ ^2[0]\.[4-9] ]]; then

cat <<EOT > /etc/clickhouse-server/users.d/low_memory_in_usersd.xml
<yandex>
Expand Down

0 comments on commit f9fe0ef

Please sign in to comment.