Repository navigation
listen: lower prod HPA minReplicas 40→30 - #23476
Merged
Merged
Conversation
Night fleet needs only ~31 pods at the 55% CPU target, so the 10-19 incident floor of 40 (#22623) idles ~9 pods every night. Return the floor to its pre-#22623 value of 30; peak path (max 60, requests, target, socket guards) is unchanged. Update the (40, 60) pin in test_backend_listen_helm_defaults.py; the 4200s rollout waits stay valid (a 30-pod floor rolls in fewer waves). Saves ~$1k/mo with the pool consolidation. Apply only after 22Z (listen freeze 13-22Z). Rollback: revert and re-roll; scale-up 50%/15s (~5 pods/15s) restores 40 in ~2 min.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
backend-listenHPAautoscaling.minReplicas40 → 30 (maxReplicasstays 60). The 40 floor was the 10-19 incident hardening (listen: raise prod HPA minReplicas 30→40 #22623); measured off-peak load needs only ~31 pods at the 55% CPU target, so 30 (the pre-listen: raise prod HPA minReplicas 30→40 #22623 floor) is enough night headroom and stops paying for ~9 idle pods every night.test_backend_listen_helm_defaults.py(40, 60)→(30, 60). The listen: raise prod HPA minReplicas 30→40 #22623 rollout waits stay valid unchanged — a 30-pod floor rolls in fewer waves, not more (test_backend_listen_rollout_wait_can_cover_a_real_rolloutpasses with the existing 4200s waits andprogressDeadlineSeconds: 4200).Evidence (read-only, prod, 2026-10-24, listen capacity review §4A)
LISTEN_RECONNECT_BUDGET_PER_MIN=6.Deploy timing
Apply only after 22Z (listen freeze 13–22Z). Roll out via the normal listen helm workflow.
Product invariants affected
Verification
BACKEND_UNIT_TEST_FILE_LIST=<list file> BACKEND_PYTEST_WORKERS=4 bash backend/test.sh(contracts, listen helm defaults, release vector):test_workflow_contracts.py94 passed,test_backend_listen_helm_defaults.py12 passed,test_verify_backend_release_vector.py51 passed. Not verified here: an actual prod roll at the new floor.Rollback
Revert this PR and re-roll the listen helm workflow. Scale-up is fast (50%/15s ≈ 5 pods/15s — back to a 40-pod fleet in ~2 min); the 4200s rollout waits stay valid in both directions.
Failure-Class: none
🤖 Generated with Claude Code