fd-audit
Installation
SKILL.md
Resource leak audit — descriptors and memory
OpenAlgo runs production as a single long-lived Gunicorn worker
(--worker-class eventlet -w 1). It never restarts between deploys, so anything
leaked once per request accumulates until the process dies. There is no second
worker to absorb the failure and no natural recycling point.
Two failure modes, same root cause — unbounded growth in a process that never restarts:
| Symptom | Ceiling | |
|---|---|---|
| Descriptors | OSError: [Errno 24] Too many open files, refused DB connections, dropped WebSocket clients |
OS ulimit -n (often 1024–65535) |
| Memory | Rising RSS, swap thrash, OOM-killer, gradual latency creep | Host RAM |
Audit the change you just made, not the whole repo.