Skip to content

Commit

Permalink
fix 22.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 f9fe0ef commit ba72b68
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion test/integration/dynamic_settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ cat <<EOT > /etc/clickhouse-server/config.d/low_memory_in_configd.xml
</yandex>
EOT

elif [[ "${CLICKHOUSE_VERSION}" =~ ^2[1]\. ]]; then
elif [[ "${CLICKHOUSE_VERSION}" =~ ^21\. ]]; then

cat <<EOT > /etc/clickhouse-server/users.d/low_memory_in_usersd.xml
<yandex>
Expand All @@ -594,6 +594,30 @@ cat <<EOT > /etc/clickhouse-server/config.d/low_memory_in_configd.xml
</yandex>
EOT

elif [[ "${CLICKHOUSE_VERSION}" =~ ^22\. ]]; then

cat <<EOT > /etc/clickhouse-server/users.d/low_memory_in_usersd.xml
<yandex>
<profiles>
<default>
<background_pool_size>2</background_pool_size>
<background_buffer_flush_schedule_pool_size>1</background_buffer_flush_schedule_pool_size>
<background_message_broker_schedule_pool_size>1</background_message_broker_schedule_pool_size>
<background_fetches_pool_size>1</background_fetches_pool_size>
<background_merges_mutations_concurrency_ratio>2</background_merges_mutations_concurrency_ratio>
</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_merges_mutations_scheduling_policy>round_robin</background_merges_mutations_scheduling_policy>
</yandex>
EOT

else

cat <<EOT > /etc/clickhouse-server/config.d/low_memory_in_configd.xml
Expand Down

0 comments on commit ba72b68

Please sign in to comment.