File tree Expand file tree Collapse file tree 2 files changed +20
-21
lines changed
Expand file tree Collapse file tree 2 files changed +20
-21
lines changed Original file line number Diff line number Diff line change @@ -7,25 +7,5 @@ metadata:
77 {{- include "trigger-v4.labels" . | nindent 4 }}
88data :
99 override.xml : |
10- <clickhouse>
11- <logger>
12- <level>warning</level>
13- </logger>
14- <!-- Memory optimization for resource-constrained environments -->
15- <max_memory_usage>1073741824</max_memory_usage> <!-- 1GB -->
16- <max_memory_usage_for_user>536870912</max_memory_usage_for_user> <!-- 512MB -->
17- <max_memory_usage_for_all_queries>1073741824</max_memory_usage_for_all_queries> <!-- 1GB -->
18- <max_server_memory_usage>1610612736</max_server_memory_usage> <!-- 1.5GB -->
19- <max_concurrent_queries>50</max_concurrent_queries>
20- <max_thread_pool_size>4</max_thread_pool_size>
21- <background_pool_size>2</background_pool_size>
22- <background_merges_mutations_concurrency_ratio>2</background_merges_mutations_concurrency_ratio>
23- <!-- Reduce cache sizes -->
24- <mark_cache_size>536870912</mark_cache_size> <!-- 512MB -->
25- <uncompressed_cache_size>134217728</uncompressed_cache_size> <!-- 128MB -->
26- <compiled_expression_cache_size>134217728</compiled_expression_cache_size> <!-- 128MB -->
27- <!-- Optimize merge settings -->
28- <merge_max_block_size>8192</merge_max_block_size>
29- <max_bytes_to_merge_at_max_space_in_pool>1073741824</max_bytes_to_merge_at_max_space_in_pool> <!-- 1GB -->
30- </clickhouse>
10+ {{ .Values.clickhouse.config.override | indent 4 }}
3111{{- end }}
Original file line number Diff line number Diff line change @@ -345,6 +345,25 @@ clickhouse:
345345 # - name: CUSTOM_VAR
346346 # value: "custom-value"
347347
348+ # ClickHouse configuration override
349+ # You can provide your own override.xml content here
350+ # These defaults are based on official recommendations for systems with <16GB RAM:
351+ # https://clickhouse.com/docs/operations/tips
352+ config :
353+ override : |
354+ <clickhouse>
355+ <logger>
356+ <level>warning</level>
357+ </logger>
358+ <!-- Official recommendations for systems with <16GB RAM -->
359+ <mark_cache_size>524288000</mark_cache_size> <!-- 500MB -->
360+ <max_thread_pool_size>1</max_thread_pool_size>
361+ <max_block_size>8192</max_block_size>
362+ <max_download_threads>1</max_download_threads>
363+ <input_format_parallel_parsing>0</input_format_parallel_parsing>
364+ <output_format_parallel_formatting>0</output_format_parallel_formatting>
365+ </clickhouse>
366+
348367# MinIO configuration
349368minio :
350369 enabled : true
You can’t perform that action at this time.
0 commit comments