fix(scheduler): stagger analytics jobs + loosen timeouts to stop nightly OOM #73
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gertjan/bodega!73
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/analytics-nightly-oom"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The analytics container was suffering recurring host-level OOM kills
(kernel OOM of the ~39 GB python process; docker OOMKilled=false because
the cgroup 48 GB limit was never reached — the host ran out of RAM).
dmesg confirms kills on Jun 22/24/25/28 and Jul 4/5.
Root cause: the nightly analytics window packed scores (23:30),
correlation (23:45), momentum (00:00) and erp (00:15) into an
overlapping 45-min band, so at ~00:15-00:35 up to four memory-heavy
jobs ran concurrently in one process, driving RSS toward 39 GB.
Effects observed in task_runs:
Changes (config-only):
momentum 00:00->03:00, erp 00:15->04:00.
Follow-up (not in this PR): the process holds ~39 GB while idle at 02:00,
implying memory is retained across jobs — evaluate a post-batch restart
of bodega-scheduler-analytics once RSS is measured.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com