2021-09-19 22:38:53 +00:00
|
|
|
<clickhouse>
|
2017-08-02 14:42:35 +00:00
|
|
|
<remote_servers>
|
|
|
|
|
|
|
|
<!-- Main cluster -->
|
|
|
|
<cluster>
|
|
|
|
<shard>
|
|
|
|
<internal_replication>true</internal_replication>
|
|
|
|
<replica>
|
|
|
|
<host>ch1</host>
|
|
|
|
<port>9000</port>
|
|
|
|
</replica>
|
|
|
|
<replica>
|
|
|
|
<host>ch2</host>
|
|
|
|
<port>9000</port>
|
|
|
|
</replica>
|
|
|
|
</shard>
|
|
|
|
<shard>
|
|
|
|
<internal_replication>true</internal_replication>
|
|
|
|
<replica>
|
|
|
|
<host>ch3</host>
|
|
|
|
<port>9000</port>
|
|
|
|
</replica>
|
|
|
|
<replica>
|
|
|
|
<host>ch4</host>
|
|
|
|
<port>9000</port>
|
|
|
|
</replica>
|
|
|
|
</shard>
|
|
|
|
</cluster>
|
|
|
|
|
|
|
|
<!-- Cluster with specified default database -->
|
|
|
|
<cluster2>
|
|
|
|
<shard>
|
|
|
|
<internal_replication>true</internal_replication>
|
|
|
|
<replica>
|
|
|
|
<host>ch1</host>
|
|
|
|
<port>9000</port>
|
|
|
|
<default_database>default</default_database>
|
|
|
|
</replica>
|
|
|
|
<replica>
|
|
|
|
<host>ch2</host>
|
|
|
|
<port>9000</port>
|
|
|
|
<default_database>test2</default_database>
|
|
|
|
</replica>
|
|
|
|
</shard>
|
|
|
|
<shard>
|
|
|
|
<internal_replication>true</internal_replication>
|
|
|
|
<replica>
|
|
|
|
<host>ch3</host>
|
|
|
|
<port>9000</port>
|
|
|
|
<default_database>default</default_database>
|
|
|
|
</replica>
|
|
|
|
<replica>
|
|
|
|
<host>ch4</host>
|
|
|
|
<port>9000</port>
|
|
|
|
<default_database>test2</default_database>
|
|
|
|
</replica>
|
|
|
|
</shard>
|
|
|
|
</cluster2>
|
|
|
|
|
|
|
|
<!-- Cluster without replicas -->
|
|
|
|
<cluster_no_replicas>
|
|
|
|
<shard>
|
|
|
|
<internal_replication>false</internal_replication>
|
|
|
|
<replica>
|
|
|
|
<host>ch1</host>
|
|
|
|
<port>9000</port>
|
|
|
|
</replica>
|
|
|
|
</shard>
|
|
|
|
<shard>
|
|
|
|
<internal_replication>false</internal_replication>
|
|
|
|
<replica>
|
|
|
|
<host>ch2</host>
|
|
|
|
<port>9000</port>
|
|
|
|
</replica>
|
|
|
|
</shard>
|
|
|
|
<shard>
|
|
|
|
<internal_replication>false</internal_replication>
|
|
|
|
<replica>
|
|
|
|
<host>ch3</host>
|
|
|
|
<port>9000</port>
|
|
|
|
</replica>
|
|
|
|
</shard>
|
|
|
|
<shard>
|
|
|
|
<internal_replication>false</internal_replication>
|
|
|
|
<replica>
|
|
|
|
<host>ch4</host>
|
|
|
|
<port>9000</port>
|
|
|
|
</replica>
|
|
|
|
</shard>
|
|
|
|
</cluster_no_replicas>
|
|
|
|
|
2023-03-29 13:37:58 +00:00
|
|
|
<!-- Cluster with disabled distributed DDL queries -->
|
|
|
|
<cluster_disabled_ddl>
|
|
|
|
<allow_distributed_ddl_queries>false</allow_distributed_ddl_queries>
|
|
|
|
<shard>
|
|
|
|
<replica>
|
|
|
|
<host>ch1</host>
|
|
|
|
<port>9000</port>
|
|
|
|
</replica>
|
|
|
|
</shard>
|
|
|
|
</cluster_disabled_ddl>
|
|
|
|
|
2017-08-02 14:42:35 +00:00
|
|
|
</remote_servers>
|
2023-03-29 13:37:58 +00:00
|
|
|
</clickhouse>
|