summaryrefslogtreecommitdiffhomepage
path: root/systemd
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-28 14:24:58 +0900
committerAdam Malczewski <[email protected]>2026-06-28 14:24:58 +0900
commit841e776635d2a93371f302f0617e729626a69fe5 (patch)
treec416925f6730a35f2560451ca7c6edaf41e8b1e4 /systemd
parent71c635f7d8ee01a2b23d5ddfdfc4bff043980052 (diff)
parent414080e271ea44df0a7affc154b62e39b51a11a0 (diff)
downloaddispatch-841e776635d2a93371f302f0617e729626a69fe5.tar.gz
dispatch-841e776635d2a93371f302f0617e729626a69fe5.zip
Merge branch 'dev' into feature/workspace-star
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