From 8904e7a38060bd287b41a8cd64a9b041f6dab3c1 Mon Sep 17 00:00:00 2001 From: akatsyuba Date: Fri, 16 Aug 2019 14:33:29 +0200 Subject: [PATCH] Merge tree configuration --- README.md | 7 +++++++ defaults/main.yml | 2 ++ templates/config.j2 | 12 +++++++----- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6785301..e054c5f 100644 --- a/README.md +++ b/README.md @@ -154,6 +154,13 @@ clickhouse_kafka_topics_config: fetch_min_bytes: 120000 ``` +F: You can manage Merge Tree config. For the list of available parameters, see [MergeTreeSettings.h](https://github.com/yandex/ClickHouse/blob/master/dbms/src/Storages/MergeTree/MergeTreeSettings.h). +```yaml +clickhouse_merge_tree_config: + max_suspicious_broken_parts: 5 + parts_to_throw_insert: 600 +``` + Example Playbook ---------------- diff --git a/defaults/main.yml b/defaults/main.yml index 59a3773..6ad3bc0 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -93,3 +93,5 @@ max_partitions_per_insert_block: 100 clickhouse_kafka_config: [] clickhouse_kafka_topics_config: [] + +clickhouse_merge_tree_config: [] diff --git a/templates/config.j2 b/templates/config.j2 index b454da8..9911c4e 100644 --- a/templates/config.j2 +++ b/templates/config.j2 @@ -306,11 +306,13 @@ - + {% if clickhouse_merge_tree_config is defined %} + + {% for config in clickhouse_merge_tree_config %} + <{{ config }}>{{ clickhouse_merge_tree_config[config] }} + {% endfor %} + + {% endif %}