Split from #1072 (part of #873). A pure function over node allocatable, requested resources, the forge pod's request and its steady memory answers: can a surge pod schedule, and if not, how much headroom would make the roll zero-downtime.
Done:
[ ] A small module, with tests on fixtures that schedule and that do not.
[ ] The standby scripts' roll recipe and docs/ops call it before rolling and print its answer.
[ ] Nothing about the release workflow or the chart changes in this pull.
A test that goes red in this pull is fixed in this pull. Name any new test file in GATE in scripts/gate.ts.
Split from #1072 (part of #873). A pure function over node allocatable, requested resources, the forge pod's request and its steady memory answers: can a surge pod schedule, and if not, how much headroom would make the roll zero-downtime.
Done:
A test that goes red in this pull is fixed in this pull. Name any new test file in
GATEinscripts/gate.ts.