2021-09-19 22:38:53 +00:00
|
|
|
<clickhouse>
|
2022-11-07 08:49:26 +00:00
|
|
|
<listen_host>::</listen_host>
|
2021-05-12 13:31:29 +00:00
|
|
|
|
|
|
|
<logger>
|
|
|
|
<level>trace</level>
|
|
|
|
<log>/var/log/clickhouse-keeper/clickhouse-keeper.log</log>
|
|
|
|
<errorlog>/var/log/clickhouse-keeper/clickhouse-keeper.err.log</errorlog>
|
2022-05-26 14:54:46 +00:00
|
|
|
<size>never</size>
|
2021-05-12 13:31:29 +00:00
|
|
|
</logger>
|
|
|
|
|
2023-06-01 12:31:06 +00:00
|
|
|
|
|
|
|
<storage_configuration>
|
|
|
|
<disks>
|
|
|
|
<log_local>
|
|
|
|
<type>local</type>
|
2023-06-06 07:17:30 +00:00
|
|
|
<path>/home/robot-clickhouse/db/coordination/logs/</path>
|
2023-06-01 12:31:06 +00:00
|
|
|
</log_local>
|
|
|
|
<latest_log_local>
|
|
|
|
<type>local</type>
|
2023-06-06 07:17:30 +00:00
|
|
|
<path>/home/robot-clickhouse/db/coordination/latest_log/</path>
|
2023-06-01 12:31:06 +00:00
|
|
|
</latest_log_local>
|
|
|
|
<snapshot_local>
|
|
|
|
<type>local</type>
|
2023-06-06 07:17:30 +00:00
|
|
|
<path>/home/robot-clickhouse/db/coordination/snapshots/</path>
|
2023-06-01 12:31:06 +00:00
|
|
|
</snapshot_local>
|
|
|
|
<latest_snapshot_local>
|
|
|
|
<type>local</type>
|
2023-06-06 07:17:30 +00:00
|
|
|
<path>/home/robot-clickhouse/db/coordination/latest_snapshot/</path>
|
2023-06-01 12:31:06 +00:00
|
|
|
</latest_snapshot_local>
|
|
|
|
</disks>
|
|
|
|
</storage_configuration>
|
|
|
|
|
2021-03-29 08:24:56 +00:00
|
|
|
<keeper_server>
|
2021-03-10 16:12:32 +00:00
|
|
|
<tcp_port>9181</tcp_port>
|
|
|
|
<server_id>{id}</server_id>
|
2024-06-24 13:16:36 +00:00
|
|
|
<digest_enabled>1</digest_enabled>
|
2021-03-10 16:12:32 +00:00
|
|
|
|
|
|
|
<coordination_settings>
|
|
|
|
<operation_timeout_ms>10000</operation_timeout_ms>
|
|
|
|
<session_timeout_ms>30000</session_timeout_ms>
|
|
|
|
<force_sync>false</force_sync>
|
2021-03-22 10:06:09 +00:00
|
|
|
<startup_timeout>120000</startup_timeout>
|
2021-03-10 16:12:32 +00:00
|
|
|
<raft_logs_level>trace</raft_logs_level>
|
2021-04-02 12:40:07 +00:00
|
|
|
<heart_beat_interval_ms>1000</heart_beat_interval_ms>
|
2021-04-02 12:40:25 +00:00
|
|
|
<election_timeout_lower_bound_ms>2000</election_timeout_lower_bound_ms>
|
|
|
|
<election_timeout_upper_bound_ms>4000</election_timeout_upper_bound_ms>
|
2022-09-17 17:22:58 +00:00
|
|
|
<quorum_reads>{quorum_reads}</quorum_reads>
|
2021-03-17 11:35:37 +00:00
|
|
|
<snapshot_distance>{snapshot_distance}</snapshot_distance>
|
|
|
|
<stale_log_gap>{stale_log_gap}</stale_log_gap>
|
|
|
|
<reserved_log_items>{reserved_log_items}</reserved_log_items>
|
2023-08-09 06:25:47 +00:00
|
|
|
<async_replication>1</async_replication>
|
2024-10-24 07:31:51 +00:00
|
|
|
<use_xid_64>1</use_xid_64>
|
2021-03-10 16:12:32 +00:00
|
|
|
</coordination_settings>
|
|
|
|
|
|
|
|
<raft_configuration>
|
|
|
|
<server>
|
|
|
|
<id>1</id>
|
|
|
|
<hostname>{srv1}</hostname>
|
|
|
|
<port>9444</port>
|
|
|
|
</server>
|
|
|
|
<server>
|
|
|
|
<id>2</id>
|
|
|
|
<hostname>{srv2}</hostname>
|
|
|
|
<port>9444</port>
|
|
|
|
</server>
|
|
|
|
<server>
|
|
|
|
<id>3</id>
|
|
|
|
<hostname>{srv3}</hostname>
|
|
|
|
<port>9444</port>
|
|
|
|
</server>
|
|
|
|
</raft_configuration>
|
2021-03-29 08:24:56 +00:00
|
|
|
</keeper_server>
|
2021-09-19 22:38:53 +00:00
|
|
|
</clickhouse>
|