Commit graph

2 commits

Author SHA1 Message Date
Claude
be650ea16c
Rework emergency-storeall.sh into a watch-only heap monitor
Follows nightly-storeall.sh's cron-driven, single-check-per-invocation
shape and logs via maintenance_log(). No longer forces storeall - that
stays a manual decision until real incident data is available to
calibrate a trigger. Every run logs old-gen occupancy plus Full/Young
GC numbers and a normal/elevated/critical condition label, building a
GC history dataset for whenever that calibration work resumes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tj4SF2BGFxgoRYrCAzNpDb
2026-09-30 16:09:16 +00:00
Claude
2478310f55
Split heap-pressure escape hatch out of nightly-storeall.sh
nightly-storeall.sh and the heap-pressure safety valve have genuinely
different schedules: the former should run once a night and is patient
(wait for quiet traffic, bounded retry), the latter needs to run every
10-15 minutes around the clock and is impatient (heap occupancy only
climbs while storeall is deferred, so it forces a run immediately with
no regard for traffic once critical). Cramming both into one script
meant they could only ever run on the same cadence.

nightly-storeall.sh: dropped heap_pressure_critical and
HEAP_FORCE_THRESHOLD_PCT entirely - it's now traffic-driven only.

emergency-storeall.sh: new script, just the heap check + immediate
storeall if critical, exits 0 doing nothing otherwise so it's cheap to
run on a tight cron schedule.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tj4SF2BGFxgoRYrCAzNpDb
2026-09-30 11:46:00 +00:00