Files
akvorado/docker/clickhouse/cluster.xml
Vincent Bernat 3e68a41f57 docker: for dev, separate standalone ClickHouse setup from cluster
This way, there is no need to start a whole cluster just to work on a
single ClickHouse. Also add some hints in CONTRIBUTING.md.
2025-08-08 08:55:29 +02:00

48 lines
1.3 KiB
XML

<clickhouse>
<remote_servers replace="true">
<akvorado>
<!-- Cluster with two shards, each having two replicas. On a real setup,
you should use more shards to balance the additional complexity
introduced by using a cluster. -->
<shard>
<internal_replication>true</internal_replication>
<replica>
<host>clickhouse-1</host>
<port>9000</port>
</replica>
<replica>
<host>clickhouse-2</host>
<port>9000</port>
</replica>
</shard>
<shard>
<internal_replication>true</internal_replication>
<replica>
<host>clickhouse-3</host>
<port>9000</port>
</replica>
<replica>
<host>clickhouse-4</host>
<port>9000</port>
</replica>
</shard>
</akvorado>
</remote_servers>
<zookeeper>
<node>
<host>clickhouse-keeper-1</host>
<port>2181</port>
</node>
<node>
<host>clickhouse-keeper-2</host>
<port>2181</port>
</node>
<node>
<host>clickhouse-keeper-3</host>
<port>2181</port>
</node>
</zookeeper>
<!-- For testing, ensure tables are dropped quickly -->
<database_atomic_delay_before_drop_table_sec>0</database_atomic_delay_before_drop_table_sec>
</clickhouse>