114 lines
3.2 KiB
XML
114 lines
3.2 KiB
XML
<clickhouse>
|
|
<!-- Listen wildcard address to allow accepting connections from other containers and host network. -->
|
|
<listen_host>::</listen_host>
|
|
<listen_host>0.0.0.0</listen_host>
|
|
<listen_try>1</listen_try>
|
|
|
|
<!--
|
|
<logger>
|
|
<console>1</console>
|
|
</logger>
|
|
-->
|
|
|
|
<keeper_server>
|
|
<tcp_port>9181</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>
|
|
</coordination_settings>
|
|
|
|
<raft_configuration>
|
|
<server>
|
|
<id>1</id>
|
|
<hostname>clickhouse-blue-1</hostname>
|
|
<port>9234</port>
|
|
</server>
|
|
<server>
|
|
<id>2</id>
|
|
<hostname>clickhouse-blue-2</hostname>
|
|
<port>9234</port>
|
|
</server>
|
|
<server>
|
|
<id>3</id>
|
|
<hostname>clickhouse-green-1</hostname>
|
|
<port>9234</port>
|
|
</server>
|
|
</raft_configuration>
|
|
</keeper_server>
|
|
|
|
|
|
|
|
<distributed_ddl>
|
|
<path>/clickhouse/task_queue/ddl</path>
|
|
</distributed_ddl>
|
|
<macros>
|
|
<cluster>events</cluster>
|
|
<shard>${SHARD}</shard>
|
|
<replica>${REPLICA}</replica>
|
|
</macros>
|
|
|
|
|
|
|
|
<remote_servers>
|
|
<events>
|
|
<shard>
|
|
<internal_replication>true</internal_replication>
|
|
<replica>
|
|
<host>clickhouse-blue-1</host>
|
|
<port>9000</port>
|
|
</replica>
|
|
<replica>
|
|
<host>clickhouse-blue-2</host>
|
|
<port>9000</port>
|
|
</replica>
|
|
</shard>
|
|
<shard>
|
|
<internal_replication>true</internal_replication>
|
|
<replica>
|
|
<host>clickhouse-green-1</host>
|
|
<port>9000</port>
|
|
</replica>
|
|
<replica>
|
|
<host>clickhouse-green-2</host>
|
|
<port>9000</port>
|
|
</replica>
|
|
</shard>
|
|
<shard>
|
|
<internal_replication>true</internal_replication>
|
|
<replica>
|
|
<host>clickhouse-orange-1</host>
|
|
<port>9000</port>
|
|
</replica>
|
|
<replica>
|
|
<host>clickhouse-orange-2</host>
|
|
<port>9000</port>
|
|
</replica>
|
|
</shard>
|
|
</events>
|
|
</remote_servers>
|
|
|
|
|
|
|
|
|
|
<zookeeper>
|
|
<node index="1">
|
|
<host>clickhouse-blue-1</host>
|
|
<port>9181</port>
|
|
</node>
|
|
<node index="2">
|
|
<host>clickhouse-blue-2</host>
|
|
<port>9181</port>
|
|
</node>
|
|
<node index="3">
|
|
<host>clickhouse-green-1</host>
|
|
<port>9181</port>
|
|
</node>
|
|
</zookeeper>
|
|
|
|
|
|
</clickhouse>
|