mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 18:32:29 +00:00
43 lines
1.3 KiB
XML
43 lines
1.3 KiB
XML
<?xml version="1.0"?>
|
|
<yandex>
|
|
<remote_servers>
|
|
<source>
|
|
<shard>
|
|
<internal_replication>false</internal_replication>
|
|
<replica>
|
|
<host>first_of_two</host>
|
|
<port>9000</port>
|
|
</replica>
|
|
</shard>
|
|
</source>
|
|
<destination>
|
|
<shard>
|
|
<internal_replication>false</internal_replication>
|
|
<replica>
|
|
<host>second_of_two</host>
|
|
<port>9000</port>
|
|
</replica>
|
|
</shard>
|
|
</destination>
|
|
</remote_servers>
|
|
|
|
<max_workers>2</max_workers>
|
|
|
|
<tables>
|
|
<table_events>
|
|
<cluster_pull>source</cluster_pull>
|
|
<database_pull>db_drop_target_partition</database_pull>
|
|
<table_pull>source</table_pull>
|
|
|
|
<cluster_push>destination</cluster_push>
|
|
<database_push>db_drop_target_partition</database_push>
|
|
<table_push>destination</table_push>
|
|
|
|
<allow_to_drop_target_partitions>true</allow_to_drop_target_partitions>
|
|
|
|
<engine>ENGINE = MergeTree() PARTITION BY toYYYYMMDD(Column3) ORDER BY (Column3, Column2, Column1)</engine>
|
|
<sharding_key>rand()</sharding_key>
|
|
</table_events>
|
|
</tables>
|
|
</yandex>
|