Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stream目录磁盘空间占用高 #28741

Open
zhuangQingGuang opened this issue Nov 12, 2024 · 6 comments
Open

stream目录磁盘空间占用高 #28741

zhuangQingGuang opened this issue Nov 12, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@zhuangQingGuang
Copy link

版本3.3.3
一共24条流计算,SQL都差不多,如下
create stream hr_stream24 into s_t_1669_compressor_current_2 subtable(concat('new_', tname)) as select _wstart, _wend, (avg(value) * 220 * 600) energy from d_1669_compressor_current_2 partition by tbname tname interval(10m);
才运行了4个月不到,vnode下stream目录已经生成100G的文件,是否正常,如何优化

@zhuangQingGuang zhuangQingGuang added the bug Something isn't working label Nov 12, 2024
@yu285
Copy link
Contributor

yu285 commented Nov 26, 2024

麻烦截图一下该目录下的明细:

@yu285 yu285 self-assigned this Nov 26, 2024
@zhuangQingGuang
Copy link
Author

麻烦截图一下该目录下的明细:

微信截图_20241126142510
微信截图_20241126142212

@yu285
Copy link
Contributor

yu285 commented Nov 29, 2024

收到。

@yu285
Copy link
Contributor

yu285 commented Nov 29, 2024

本身由于你的流计算比较多,任务也多,所以计算量比较大,在中间状态中可能会有这么大的空间占用。
目前的空间是什么情况了?有释放吗?

@zhuangQingGuang
Copy link
Author

本身由于你的流计算比较多,任务也多,所以计算量比较大,在中间状态中可能会有这么大的空间占用。 目前的空间是什么情况了?有释放吗?

最近升级版本 我把流计算删掉了 删了好像也没有释放空间 意思是用DELETE_MARK释放空间吗

@yu285
Copy link
Contributor

yu285 commented Nov 29, 2024

https://docs.taosdata.com/advanced/stream/#%E6%B5%81%E8%AE%A1%E7%AE%97%E5%8D%87%E7%BA%A7%E6%95%85%E9%9A%9C%E6%81%A2%E5%A4%8D

请按照这个操作来清理流。

这个流文件的删除是流自己控制的。

请在最新版本再观察

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants