summaryrefslogtreecommitdiffhomepage
path: root/systemd
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-28 14:26:07 +0900
committerAdam Malczewski <[email protected]>2026-06-28 14:31:12 +0900
commitdf7d45b58076b6ab47bea3148872cac11401d510 (patch)
tree8c3da2f50f063f0b491d595550bd755564013745 /systemd
parent2d276669a0cb41959fc67d17bc58e77853dc3eb5 (diff)
parent414080e271ea44df0a7affc154b62e39b51a11a0 (diff)
downloaddispatch-df7d45b58076b6ab47bea3148872cac11401d510.tar.gz
dispatch-df7d45b58076b6ab47bea3148872cac11401d510.zip
Merge branch 'dev' into feature/concurrency-fixes
Diffstat (limited to 'systemd')
-rw-r--r--systemd/dispatch.service6
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