V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
meso5533
V2EX  ›  ClickHouse

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

  •  
  •   meso5533 · 2022-10-09 18:32:16 +08:00 · 844 次点击
    这是一个创建于 563 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 一定就是时间久远的数据吗?

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4824 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 01:09 · PVG 09:09 · LAX 18:09 · JFK 21:09
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.