fix(cron): pids_limit 30 gav 14 % tysta jobbhopp — 200 pids, 256 MiB och liveness-sond
This commit is contained in:
+13
-2
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user