diff options
Diffstat (limited to 'systemd')
| -rw-r--r-- | systemd/dispatch.service | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/systemd/dispatch.service b/systemd/dispatch.service index e651fa7..42b5a29 100644 --- a/systemd/dispatch.service +++ b/systemd/dispatch.service @@ -10,6 +10,12 @@ EnvironmentFile=/etc/dispatch/env WorkingDirectory=/var/lib/dispatch Restart=on-failure RestartSec=5 +# Memory-pressure circuit breaker: the server has a memory leak (~2.5 GB/h) +# that eventually triggers a Bun runtime segfault. These cgroup limits turn +# the uncontrolled crash into a controlled OOM-kill → clean restart. +# Machine has 33.24 GB total; 24G hard cap leaves OS headroom. +MemoryHigh=20G +MemoryMax=24G StandardOutput=journal StandardError=journal |
