Repository navigation
fix(staging): fit the staging release on existing nodes (spot + right-sized, clawdbot off) - #2447
Conversation
…-sized, clawdbot off) The first hand-install hit the atomic timeout: backend was stuck Pending (no spot toleration → only the full, untainted default-pool; "Insufficient cpu / untolerated taints"), and clawdbot-gateway's two PVCs never Bound. This is about requests, not load — live node CPU is 3–17%. - backend + frontend now schedule on the spot pool (workload-tier=spot toleration + nodeSelector) with requests at a fraction of prod (backend 100m/256Mi, frontend 50m/128Mi). Prod backend deliberately stays on dev-pool (session state); staging is the reckless, resettable lane where a spot reclamation just restarts it. - clawdbot-gateway OFF in staging (prod runs no gateway Deployment either), and its persistence.config/workspace PVCs disabled so the gateway leaves nothing unbound. No node-pool or autoscaler change. Prod render byte-identical to main (3f41646b); diff is values-staging.yaml only. Staging total CPU requests ~300m, well within the spot pool. litellm remains off (open question for whether the Fri walk needs an agent to answer). Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01Nju36GWpimrACHLKahbB4L
lilyshen0722
left a comment
There was a problem hiding this comment.
Own exact-head Helm checks pass. Production (values + values-dev) is byte-identical to current main 585e11c (39 objects), and its backend remains off spot. Staging changes only backend/frontend PodSpec resources and placement, and removes the gateway Deployment, Service, and both gateway PVCs (23 to 19 objects). Backend requests are 100m/256Mi; frontend 50m/128Mi; both have workload-tier=spot selectors and matching NoSchedule tolerations. The unused clawdbot ConfigMap remains; the gateway workload and PVCs do not. Strict js-yaml loadAll parses both environments, with Helm stderr separate and empty.
Read the full one-file +59 diff against merge-base bd58ba2; no node-pool/autoscaler resource or production override changes, no credential/private R12 identifier added. Diff check clean, rubric/checklist unchanged, fetched/live head matched. CI currently has 20 successful checks, 2 skipped, and Legacy test and coverage still in progress; this is a source/render clearance, not a claim that every check has completed.
No blocking defect. SRE's live fit/readiness/prod-unchanged observations remain attributed operator evidence; I did not measure current node allocatable capacity, live scheduling, or the authenticated staging journey. The staging spot tradeoff is explicitly documented; it does not change prod placement. The subsequent deploy-staging workflow must retain the requested merge ordering after this chart change.
Written by Rhea, a Commonly agent — https://commonly.me/pods/6a8f6dc7a1dccf2e02f31015
GATE: PASS
Makes the staging release fit the nodes we already have. The first hand-install hit the
--atomictimeout and rolled back cleanly (prod untouched): backend sat Pending (no spot toleration → only the full, untainted default-pool: "Insufficient cpu / untolerated taints"), and clawdbot-gateway's two PVCs never Bound. This is a requests problem, not load — live node CPU is 3–17%.What changed (values-staging.yaml only)
workload-tier=spottoleration + nodeSelector, at a fraction of prod's requests (backend 100m/256Mi, frontend 50m/128Mi). Prod backend deliberately stays on dev-pool (it holds session state a spot reclamation must never interrupt); staging is the reckless, resettable lane, so a reclamation just restarts it.persistence.config/persistence.workspacePVCs are disabled too, so the gateway leaves nothing unbound.No node-pool or autoscaler-max change (that's new spend / Sam's call), and it didn't need one.
Verified
3f41646b…); the diff is values-staging.yaml only.helm upgrade --install --atomic, right-sized): all four pods Ready — backend/frontend/mongodb on spot-pool, redis on default-pool; prodcommonly-devunchanged (pod list + restartCounts + backend RS identical before/after).mongodbService (not Atlas/Aiven); backend/api/health/ready→ 200{"status":"ready"}.litellm remains off in staging (hosted agents answer through it) — tracked separately; decision pending on whether the Fri walk needs an agent to reply.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Nju36GWpimrACHLKahbB4L