【发布时间】:2019-10-22 13:48:47
【问题描述】:
我有两个关于如何在 clickhouse 中分片的问题。
第一季度。 clickhouse中分片是否需要使用分布式引擎?
第二季度。 我想知道是否可以根据我设置的标准进行分片,而不是根据分片的权重自动分配。
Example.
- If id is 1, it is stored in shard1.
- If id is 2, it is stored in shard2.
- If id is 3, it is stored in shard3.
I understand the sharding through the distribution engine as follows.
- distributed engine use the cluster defined in the config.xml file.
- It is automatically distributed to the shard according to the weight of the shard.
感谢您阅读我的问题。期待您的回复。
【问题讨论】:
标签: clickhouse