Skip to content

Fix job pod memory limit multiplier typo (1204 -> 1024)#309

Closed
wesleyjellis wants to merge 1 commit into
mainfrom
fix-job-pod-memory-limit-math
Closed

Fix job pod memory limit multiplier typo (1204 -> 1024)#309
wesleyjellis wants to merge 1 commit into
mainfrom
fix-job-pod-memory-limit-math

Conversation

@wesleyjellis

Copy link
Copy Markdown

What

The job pod memory limit was computed as MemLimit*1024*1204 instead of MemLimit*1024*1024 — a digit-swap typo that inflates every job pod's effective memory limit by ~17.6% over the configured value. For example, prod's --job-pod-limits-memory=6656 currently produces a ~7.8 GiB limit instead of the intended 6.5 GiB.

⚠️ Behavior change

This lowers effective job pod memory limits for all existing deployments back to their configured values. Any job that has been relying on the accidental headroom may start getting OOMKilled after this rolls out. If we'd rather keep current effective limits, the configured MB values should be bumped ~17.6% in the same release.

Heads up: #308 refactors these lines into a resources() helper (deliberately preserving this bug) — whichever lands second needs a trivial rebase.

🤖 Generated with Claude Code

The memory limit was computed as MB*1024*1204 instead of MB*1024*1024,
inflating every job pod's effective memory limit by ~17.6% over the
configured value (e.g. --job-pod-limits-memory=6656 produced ~7.8GiB
instead of 6.5GiB).

Note this effectively lowers job pod memory limits for existing
deployments; jobs that relied on the accidental headroom may start
OOMKilling after this lands.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@wesleyjellis

Copy link
Copy Markdown
Author

Closing — this was based on a stale clone. The typo was already fixed on main in January 2026 (beads issue opslevel-runner-c7f); current main computes memory limits as 1024*1024 in src/pkg/k8s_config.go.

@wesleyjellis wesleyjellis deleted the fix-job-pod-memory-limit-math branch July 6, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant