36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
|
{%- from "clickhouse/map.jinja" import clickhouse with context -%}
|
||
|
<clickhouse>
|
||
|
<zookeeper>
|
||
|
{%- for nodename, settings in clickhouse.clusters[clickhouse.cluster].nodes.items() %}
|
||
|
<node>
|
||
|
<host>{{ nodename }}</host>
|
||
|
<port>{{ settings.port|default(9281) }}</port>
|
||
|
<secure>1</secure>
|
||
|
</node>
|
||
|
{%- endfor %}
|
||
|
</zookeeper>
|
||
|
<keeper_server>
|
||
|
<tcp_port_secure>{{ settings.port|default(9281) }}</tcp_port_secure>
|
||
|
<server_id>{{ clickhouse.clusters[clickhouse.cluster].nodes[salt['grains.get']('fqdn')].id }}</server_id>
|
||
|
<log_storage_path>/var/lib/clickhouse/coordination/log</log_storage_path>
|
||
|
<snapshot_storage_path>/var/lib/clickhouse/coordination/snapshots</snapshot_storage_path>
|
||
|
|
||
|
<coordination_settings>
|
||
|
<operation_timeout_ms>10000</operation_timeout_ms>
|
||
|
<session_timeout_ms>30000</session_timeout_ms>
|
||
|
<raft_logs_level>fatal</raft_logs_level>
|
||
|
</coordination_settings>
|
||
|
|
||
|
<raft_configuration>
|
||
|
<secure>true</secure>
|
||
|
{%- for nodename, settings in clickhouse.clusters[clickhouse.cluster].nodes.items() %}
|
||
|
<server>
|
||
|
<id>{{ settings.id }}</id>
|
||
|
<hostname>{{ nodename }}</hostname>
|
||
|
<port>{{ settings.port|default(9444) }}</port>
|
||
|
</server>
|
||
|
{%- endfor %}
|
||
|
</raft_configuration>
|
||
|
</keeper_server>
|
||
|
</clickhouse>
|