mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 21:24:28 +00:00
42 lines
1.5 KiB
XML
42 lines
1.5 KiB
XML
<clickhouse>
|
|
<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>
|
|
</clickhouse> |