mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
43 lines
1.5 KiB
XML
43 lines
1.5 KiB
XML
<?xml version="1.0"?>
|
|
<yandex>
|
|
<remote_servers>
|
|
<events>
|
|
<shard>
|
|
<internal_replication>false</internal_replication>
|
|
<replica>
|
|
<host>first</host>
|
|
<port>9000</port>
|
|
</replica>
|
|
</shard>
|
|
<shard>
|
|
<internal_replication>false</internal_replication>
|
|
<replica>
|
|
<host>second</host>
|
|
<port>9000</port>
|
|
</replica>
|
|
</shard>
|
|
<shard>
|
|
<internal_replication>false</internal_replication>
|
|
<replica>
|
|
<host>third</host>
|
|
<port>9000</port>
|
|
</replica>
|
|
</shard>
|
|
</events>
|
|
</remote_servers>
|
|
|
|
<max_workers>2</max_workers>
|
|
|
|
<tables>
|
|
<table_events>
|
|
<cluster_pull>events</cluster_pull>
|
|
<database_pull>dailyhistory</database_pull>
|
|
<table_pull>yellow_tripdata_staging</table_pull>
|
|
<cluster_push>events</cluster_push>
|
|
<database_push>monthlyhistory</database_push>
|
|
<table_push>yellow_tripdata_staging</table_push>
|
|
<engine>Engine=ReplacingMergeTree() PRIMARY KEY (tpep_pickup_datetime, id) ORDER BY (tpep_pickup_datetime, id) PARTITION BY (pickup_location_id, toYYYYMM(tpep_pickup_datetime))</engine>
|
|
<sharding_key>sipHash64(id) % 3</sharding_key>
|
|
</table_events>
|
|
</tables>
|
|
</yandex> |