Skip to content

[Bug] CPU Spike Caused by WAF Cleanup in 1Panel-Agent After Midnight #13595

Description

@David1119

Contact Information

No response

1Panel Version

1Panel v2.2.5专业版

Problem Description

7.4G /opt/1panel/apps/openresty/openresty/1pwaf/data/db/waf/nginx_logs.db
1.5G /opt/1panel/apps/openresty/openresty/1pwaf/data/db/waf/attack_logs.db
1.3G /opt/1panel/apps/openresty/openresty/1pwaf/data/db/waf/req_uris.db
1.3G /opt/1panel/apps/openresty/openresty/1pwaf/data/db/waf/uris.db
763M /opt/1panel/apps/openresty/openresty/1pwaf/data/db/waf/match_values.db
waf数据库存储过大,每天0点之后1panel-agent cpu占用飙升至40%以上、大量读写磁盘,且持续10多分钟,出现过一次磁盘IO读写上限导致服务器挂掉,希望优化并修复这个问题

Steps to Reproduce

需要1panel绑定较多网站且waf拦截记录很多

The expected correct result

No response

Related log output

Additional Information

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions