2018-01-09 19:12:43 +00:00
<?xml version="1.0"?>
<yandex >
2018-02-07 13:02:47 +00:00
<!-- How many simualteneous workers are posssible -->
2018-03-14 20:19:25 +00:00
<max_workers > 3</max_workers>
2018-02-07 13:02:47 +00:00
<!-- Common setting for pull and push operations -->
<settings >
<connect_timeout > 1</connect_timeout>
</settings>
<!-- Setting used to fetch data -->
<settings_pull >
2018-03-01 18:33:27 +00:00
<max_rows_in_distinct > 0</max_rows_in_distinct>
2018-02-07 13:02:47 +00:00
</settings_pull>
<!-- Setting used to insert data -->
<settings_push >
</settings_push>
<!-- Tasks -->
<tables >
<hits >
<cluster_pull > cluster0</cluster_pull>
<database_pull > default</database_pull>
<table_pull > hits</table_pull>
<cluster_push > cluster1</cluster_push>
<database_push > default</database_push>
<table_push > hits</table_push>
2020-03-18 08:49:05 +00:00
<number_of_splits > 2</number_of_splits>
2018-03-02 12:28:00 +00:00
<enabled_partitions > 3 4 5 6 1 2 0 </enabled_partitions>
2018-02-07 13:02:47 +00:00
<!-- Engine of destination tables -->
2020-04-21 17:37:40 +00:00
<engine > ENGINE=ReplicatedMergeTree('/clickhouse/tables/cluster{cluster}/{shard}/hits', '{replica}') PARTITION BY d % 3 ORDER BY (d, sipHash64(d)) SAMPLE BY sipHash64(d) SETTINGS index_granularity = 16</engine>
2018-02-07 13:02:47 +00:00
<!-- Which sarding key to use while copying -->
<sharding_key > d + 1</sharding_key>
<!-- Optional expression that filter copying data -->
<where_condition > d - d = 0</where_condition>
</hits>
</tables>
2018-01-09 19:12:43 +00:00
<!-- Configuration of clusters -->
<remote_servers >
<cluster0 >
<shard >
<internal_replication > true</internal_replication>
<replica >
<host > s0_0_0</host>
<port > 9000</port>
</replica>
<replica >
<host > s0_0_1</host>
<port > 9000</port>
</replica>
</shard>
<shard >
<internal_replication > true</internal_replication>
<replica >
<host > s0_1_0</host>
<port > 9000</port>
</replica>
</shard>
</cluster0>
<cluster1 >
<shard >
<internal_replication > true</internal_replication>
<replica >
<host > s1_0_0</host>
<port > 9000</port>
</replica>
<replica >
<host > s1_0_1</host>
<port > 9000</port>
</replica>
</shard>
<shard >
<internal_replication > true</internal_replication>
<replica >
<host > s1_1_0</host>
<port > 9000</port>
</replica>
2018-02-07 13:02:47 +00:00
<replica >
<!-- Died replica -->
<host > 255.255.255.255</host>
<port > 9000</port>
</replica>
2018-01-09 19:12:43 +00:00
</shard>
</cluster1>
</remote_servers>
</yandex>