clickhouse 文档里的划分冷热多盘存储配置真的是按时间划分冷热数据的吗?

2022-10-09 18:32:16 +08:00
 meso5533

https://clickhouse.com/docs/en/engines/table-engines/mergetree-family/mergetree/#table_engine-mergetree-multiple-volumes

move_factor:when the amount of available space gets lower than this factor, data automatically starts to move on the next volume if any (by default, 0.1). ClickHouse sorts existing parts by size from largest to smallest (in descending order) and selects parts with the total size that is sufficient to meet the move_factor condition. If the total size of all parts is insufficient, all parts will be moved.

看文档的解释,应该是按 part 的大小优先把大的 part 移到下一个盘

但是什么样的数据会被合并成一个 part 的呢?

大的 part 一定就是时间久远的数据吗?

869 次点击
所在节点    ClickHouse
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/885593

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX