clickhouse_cluster/keeper.xml.j2

46 lines
1.5 KiB
Plaintext
Raw Normal View History

2024-03-05 12:25:55 +03:00
<clickhouse>
<keeper_server>
<tcp_port>2181</tcp_port>
<server_id>{{ server_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>trace</raft_logs_level>
<rotate_log_storage_interval>10000</rotate_log_storage_interval>
</coordination_settings>
<raft_configuration>
<server>
<id>1</id>
<hostname>{{ hostvars['server1'].ansible_host }}</hostname>
<port>9444</port>
</server>
<server>
<id>2</id>
<hostname>{{ hostvars['server2'].ansible_host }}</hostname>
<port>9444</port>
</server>
<server>
<id>3</id>
<hostname>{{ hostvars['server3'].ansible_host }}</hostname>
<port>9444</port>
</server>
</raft_configuration>
</keeper_server>
<zookeeper>
<node>
<host>localhost</host>
<port>2181</port>
</node>
</zookeeper>
<distributed_ddl>
<path>/clickhouse/{{ cluster_name }}/task_queue/ddl</path>
</distributed_ddl>
</clickhouse>