mirror of
https://github.com/chatwoot/chatwoot.git
synced 2026-06-04 21:02:35 +08:00
## Summary - Adds `LimitNOFILE=65536` to both web and worker systemd service units - Fixes recurring `Errno::EMFILE` (Too many open files) errors during peak traffic after deploys ## Context Puma workers idle at 720-770 open FDs against the default soft limit of 1024, leaving ~250 FDs of headroom. During deploy-triggered instance refreshes at peak traffic, concurrent requests exhaust the remaining FDs, causing EMFILE across all web instances. 3 incidents in March 2026 with escalating event counts. The hard limit is already 524288, so this just raises the soft limit to a standard production value. Self-hosted instances pick this up automatically via `cwctl --upgrade`. Fixes https://linear.app/chatwoot/issue/CW-6685/errnoemfile-too-many-open-files-rb-sysopen |
||
|---|---|---|
| .. | ||
| chatwoot | ||
| chatwoot-web.1.service | ||
| chatwoot-web.target | ||
| chatwoot-worker.1.service | ||
| chatwoot-worker.target | ||
| chatwoot.target | ||
| nginx_chatwoot.conf | ||
| setup_18.04.sh | ||
| setup_20.04.sh | ||