<?xml version="1.0"?> <yandex> <clickhouse_remote_servers> <myck> <!--集群名称,自定义 每个分片只有1个副本--> <shard> <!--分片1--> <internal_replication>true</internal_replication> <replica> <host>node31</host> <port>9000</port> </replica> </shard> <shard> <!--分片2--> <replica> <internal_replication>true</internal_replication> <host>node32</host> <port>9000</port> </replica> </shard> <shard> <!--分片3--> <internal_replication>true</internal_replication> <replica> <host>node33</host> <port>9000</port> </replica> </shard> </myck> </clickhouse_remote_servers> <zookeeper-servers> <!--配置zookeeper集群地址--> <node index="1"> <host>node22</host> <port>2181</port> </node> <node index="2"> <host>node23</host> <port>2181</port> </node> <node index="3"> <host>node24</host> <port>2181</port> </node> </zookeeper-servers> <macros> <replica>node31</replica> </macros> <networks> <ip>::/0</ip> </networks> <clickhouse_compression> <case> <min_part_size>10000000000</min_part_size> <min_part_size_ratio>0.01</min_part_size_ratio> <method>lz4</method> </case> </clickhouse_compression> </yandex>