-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathread_cluster.xml
More file actions
24 lines (23 loc) · 1.75 KB
/
Copy pathread_cluster.xml
File metadata and controls
24 lines (23 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<clickhouse>
<profiles>
<default>
<max_threads>4</max_threads>
<!--Из-за ошибки "Task count for MergeTreeBackgroundExecutor must not be zero" ставим 1. Так бы 0 по-хорошему -->
<background_merges_mutations_concurrency_ratio>1</background_merges_mutations_concurrency_ratio>
</default>
</profiles>
<merge_tree>
<!-- Без этих настроек Clickhouse выдает ошибку -->
<number_of_free_entries_in_pool_to_execute_mutation>1</number_of_free_entries_in_pool_to_execute_mutation>
<number_of_free_entries_in_pool_to_lower_max_size_of_merge>1</number_of_free_entries_in_pool_to_lower_max_size_of_merge>
<number_of_free_entries_in_pool_to_execute_optimize_entire_partition>1</number_of_free_entries_in_pool_to_execute_optimize_entire_partition>
<merge_tree_clear_old_temporary_directories_interval_seconds>60</merge_tree_clear_old_temporary_directories_interval_seconds>
<merge_tree_clear_old_parts_interval_seconds>60</merge_tree_clear_old_parts_interval_seconds>
<simultaneous_parts_removal_limit>60</simultaneous_parts_removal_limit>
<old_parts_lifetime>60</old_parts_lifetime>
</merge_tree>
<!--Из-за ошибки "Task count for MergeTreeBackgroundExecutor must not be zero" ставим 1. Так бы 0 по-хорошему -->
<background_pool_size>1</background_pool_size>
<!-- Ограничение использования памяти (для стабильной работы у сервера 20% должно быть свободно) -->
<max_server_memory_usage>2000000000</max_server_memory_usage> <!-- 2GB для моей локальной машины -->
</clickhouse>