diff --git a/states/clickhouse/templates/keeper.xml.j2 b/states/clickhouse/templates/keeper.xml.j2 index 35cbdbc..db73031 100644 --- a/states/clickhouse/templates/keeper.xml.j2 +++ b/states/clickhouse/templates/keeper.xml.j2 @@ -4,13 +4,13 @@ {%- for nodename, settings in clickhouse.clusters[clickhouse.cluster].nodes.items() %} {{ nodename }} - {{ settings.port|default(9281) }} + 9281 1 {%- endfor %} - {{ settings.port|default(9281) }} + 9281 {{ clickhouse.clusters[clickhouse.cluster].nodes[salt['grains.get']('fqdn')].id }} /var/lib/clickhouse/coordination/log /var/lib/clickhouse/coordination/snapshots @@ -27,7 +27,7 @@ {{ settings.id }} {{ nodename }} - {{ settings.port|default(9444) }} + 9444 {%- endfor %} diff --git a/states/clickhouse/templates/settings.xml.j2 b/states/clickhouse/templates/settings.xml.j2 index 942dfa7..5b15991 100644 --- a/states/clickhouse/templates/settings.xml.j2 +++ b/states/clickhouse/templates/settings.xml.j2 @@ -5,6 +5,8 @@ /clickhouse/{cluster}/tables/{uuid}/{database}/{table}-{shard} fatal + 5 + 200M 0.5 9440