2021-04-22 18:04:32 +00:00
|
|
|
<?xml version="1.0"?>
|
2021-09-19 22:38:53 +00:00
|
|
|
<clickhouse>
|
2021-04-22 18:04:32 +00:00
|
|
|
<remote_servers>
|
|
|
|
<source>
|
|
|
|
<shard>
|
|
|
|
<internal_replication>false</internal_replication>
|
|
|
|
<replica>
|
2021-06-08 01:50:43 +00:00
|
|
|
<host>first_of_two</host>
|
2021-04-22 18:04:32 +00:00
|
|
|
<port>9000</port>
|
|
|
|
</replica>
|
|
|
|
</shard>
|
|
|
|
</source>
|
|
|
|
<destination>
|
|
|
|
<shard>
|
|
|
|
<internal_replication>false</internal_replication>
|
|
|
|
<replica>
|
2021-06-08 01:50:43 +00:00
|
|
|
<host>second_of_two</host>
|
2021-04-22 18:04:32 +00:00
|
|
|
<port>9000</port>
|
|
|
|
</replica>
|
|
|
|
</shard>
|
|
|
|
</destination>
|
|
|
|
</remote_servers>
|
|
|
|
|
|
|
|
<max_workers>2</max_workers>
|
|
|
|
|
|
|
|
<tables>
|
|
|
|
<table_events>
|
|
|
|
<cluster_pull>source</cluster_pull>
|
|
|
|
<database_pull>db_different_schema</database_pull>
|
|
|
|
<table_pull>source</table_pull>
|
|
|
|
|
|
|
|
<cluster_push>destination</cluster_push>
|
|
|
|
<database_push>db_different_schema</database_push>
|
|
|
|
<table_push>destination</table_push>
|
|
|
|
|
|
|
|
<engine>ENGINE = MergeTree() PARTITION BY toYYYYMMDD(Column3) ORDER BY (Column9, Column1, Column2, Column3, Column4)</engine>
|
|
|
|
<sharding_key>rand()</sharding_key>
|
|
|
|
</table_events>
|
|
|
|
</tables>
|
2021-09-19 22:38:53 +00:00
|
|
|
</clickhouse>
|