fix(cron): pids_limit 30 gav 14 % tysta jobbhopp — 200 pids, 256 MiB och liveness-sond
masterplan-lock / check (pull_request) Successful in 7s
security / scan (pull_request) Failing after 27s

This commit is contained in:
Claude Code
2026-11-15 18:17:28 +01:00
parent 1151e53841
commit a8efc6f693
+13 -2
View File
@@ -68,8 +68,19 @@ services:
read_only: true read_only: true
tmpfs: tmpfs:
- /tmp - /tmp
mem_limit: 64m # 2026-11-15: pids_limit 30 gav "fork/exec /bin/sh: resource temporarily
pids_limit: 30 # unavailable" i 14,3 % av cron-körningarna (1 497 av 10 455 senaste dygnet)
# när flera scheman (var 1/2/5/10 min) sammanföll — jobben hoppades över
# utan larm. 200 pids och 256 MiB ger marginal; uppmätt behov är ~17 pids
# och ~12 MiB i drift.
mem_limit: 256m
pids_limit: 200
healthcheck:
test: ["CMD-SHELL", "ps ax | grep -q '[s]upercronic /etc/supercronic/crontab'"]
interval: 60s
timeout: 10s
retries: 3
start_period: 20s
restart: unless-stopped restart: unless-stopped
logging: logging:
driver: json-file driver: json-file