chaitin / SafeLine

A web security gateway, serve as a reverse proxy to protect your websites from attacks and exploits.
https://waf.chaitin.com
GNU General Public License v3.0
10.87k stars 650 forks source link

luigi.db 文件过大 #944

Closed lufeijun closed 1 week ago

lufeijun commented 2 weeks ago

反馈内容

/data/safeline/resources/luigi 目录下文件过大,大约 50 G 左右,有没有办法清理一下

xbingW commented 1 week ago

可以定期执行 docker exec safeline-mgt cleanlogs 来清理统计日志

Lorna0 commented 1 week ago

luigi 是统计模块,目前首页统计最长是 30 天,所以需要存储 30 天的统计数据。如果访问量比较大,统计数据就比较大(demo 日均 6w 访问会占用 1G),50G 的话访问量应该真的很大了,建议扩容。

lufeijun commented 1 week ago

可以定期执行 docker exec safeline-mgt cleanlogs 来清理统计日志

这个命令好像不会清理 /data/safeline/resources/luigi 磁盘文件