2020-06-13 18:33:58 +00:00
|
|
|
<yandex>
|
|
|
|
<remote_servers>
|
|
|
|
<replicas_cluster>
|
|
|
|
<shard>
|
|
|
|
<replica>
|
|
|
|
<host>n1</host>
|
|
|
|
<port>9000</port>
|
|
|
|
</replica>
|
|
|
|
<replica>
|
|
|
|
<host>n2</host>
|
|
|
|
<port>9000</port>
|
|
|
|
</replica>
|
|
|
|
<replica>
|
|
|
|
<host>n3</host>
|
|
|
|
<port>9000</port>
|
|
|
|
</replica>
|
|
|
|
</shard>
|
|
|
|
</replicas_cluster>
|
|
|
|
|
2020-06-27 07:29:47 +00:00
|
|
|
<replicas_priority_cluster>
|
|
|
|
<shard>
|
|
|
|
<replica>
|
|
|
|
<host>n1</host>
|
|
|
|
<port>9000</port>
|
|
|
|
<priority>0</priority>
|
|
|
|
</replica>
|
|
|
|
<replica>
|
|
|
|
<host>n2</host>
|
|
|
|
<port>9000</port>
|
2020-06-30 08:09:06 +00:00
|
|
|
<!-- will not be quieried, if n1 and n3 has errors_count == 0 -->
|
2020-06-27 07:29:47 +00:00
|
|
|
<!-- <priority>1</priority> -->
|
|
|
|
</replica>
|
|
|
|
<replica>
|
|
|
|
<host>n3</host>
|
|
|
|
<port>9000</port>
|
|
|
|
<priority>0</priority>
|
|
|
|
</replica>
|
|
|
|
</shard>
|
|
|
|
</replicas_priority_cluster>
|
|
|
|
|
2020-06-30 08:09:06 +00:00
|
|
|
<replicas_priority_negative_cluster>
|
|
|
|
<shard>
|
|
|
|
<replica>
|
|
|
|
<host>n1</host>
|
|
|
|
<port>9000</port>
|
|
|
|
<priority>-1</priority>
|
|
|
|
</replica>
|
|
|
|
<replica>
|
|
|
|
<host>n2</host>
|
|
|
|
<port>9000</port>
|
|
|
|
<!-- will not be quieried, if n1 and n3 has errors_count == 0 -->
|
|
|
|
<priority>0</priority>
|
|
|
|
</replica>
|
|
|
|
<replica>
|
|
|
|
<host>n3</host>
|
|
|
|
<port>9000</port>
|
|
|
|
<priority>-1</priority>
|
|
|
|
</replica>
|
|
|
|
</shard>
|
|
|
|
</replicas_priority_negative_cluster>
|
|
|
|
|
2020-06-27 07:29:47 +00:00
|
|
|
<!-- For JOIN with system.clusters -->
|
2020-06-13 18:33:58 +00:00
|
|
|
<shards_cluster>
|
|
|
|
<node>
|
|
|
|
<host>n1</host>
|
|
|
|
<port>9000</port>
|
|
|
|
</node>
|
|
|
|
<node>
|
|
|
|
<host>n2</host>
|
|
|
|
<port>9000</port>
|
|
|
|
</node>
|
|
|
|
<node>
|
|
|
|
<host>n3</host>
|
|
|
|
<port>9000</port>
|
|
|
|
</node>
|
|
|
|
</shards_cluster>
|
|
|
|
</remote_servers>
|
|
|
|
</yandex>
|
|
|
|
|