deepflow icon indicating copy to clipboard operation
deepflow copied to clipboard

[FR] 外部ck ttl 删除很慢

Open yhcloud123 opened this issue 1 year ago • 2 comments

Search before asking

  • [X] I had searched in the issues and found no similar feature requirement.

Description

f25a1f14beea096c3ef757a21ed4708 aa6c066f1e79fc21e0666383914ff04 有遇到过外部ck,ttl 3d到期实际删除很慢吗,对比两套环境一样的配置,采集数据量小的会严格遵循ttl,数据量大一点的的ck ttl到期会删除一小部分数据(如删除近10天随机过期数据),比如最开始几天的部分一直没有删除

或者可以测试建表设置参数ttl_only_drop_parts 会不会好点 这块有什么建议吗

Use case

1

Related issues

No response

Are you willing to submit a PR?

  • [X] Yes I am willing to submit a PR!

Code of Conduct

yhcloud123 avatar Jul 04 '24 10:07 yhcloud123

This may be a bug inherent in ClickHouse, occasionally failing to clean up as expected. You might try restarting ClickHouse to potentially resolve this issue. Note: If you are using an external ClickHouse and data storage exceeds 80%, DeepFlow-Server will not trigger automatic cleanup

1473371932 avatar Jul 04 '24 15:07 1473371932

@yhcloud123 v6.5 和 main版本 新建表会增加ttl_only_drop_parts 这个配置了。 你也可以 手动修改表,加上这个配置看看,是否有效果。例如 alter table flow_log.l7_flow_log_local MODIFY SETTING ttl_only_drop_parts=1;

lzf575 avatar Jul 05 '24 09:07 lzf575