FastGPT/packages
caigua 21de152fd7
Some checks are pending
Build FastGPT images in Personal warehouse / get-vars (push) Waiting to run
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:amd64 runs-on:ubuntu-24.04]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:arm64 runs-on:ubuntu-24.04-arm]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / release-fastgpt-images (push) Blocked by required conditions
fix: 避免日志记录触发递归日志风暴,排除日志模型的性能监控中间件 (#5910)
初始慢操作触发日志写入,增加系统负载;日志写入因负载过高变缓,被判定为新的慢操作,进而触发更多日志;持续升高的负载让所有操作进一步变慢,生成更多日志。最终形成“越慢越写、越写越慢”的自我强化正反馈循环,即便初始高并发业务流量结束,循环仍会持续耗尽系统资源,直至服务崩溃。

修复方案:
- 对日志模型(Log)跳过 addCommonMiddleware 中间件注册
- 避免日志写入操作被自身监控逻辑拦截,从源头切断循环触发条件
- 不影响业务模型的慢操作监控功能,仅豁免日志自身的性能统计
2025-11-13 12:15:16 +08:00
..
global V4.14.1 feature (#5880) 2025-11-11 14:05:02 +08:00
service fix: 避免日志记录触发递归日志风暴,排除日志模型的性能监控中间件 (#5910) 2025-11-13 12:15:16 +08:00
web V4.14.1 feature (#5880) 2025-11-11 14:05:02 +08:00
README.md update code positon (#3907) 2025-02-27 10:30:43 +08:00

目录说明

该目录为 FastGPT 的依赖包,多端复用。