← Back to Pull requests

Keep one on-demand worker for cluster-bot AWS spot launches #646

Open
unknown opened this pull request with 233 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 06, 2026 11:15 UTC
Author

Summary

Set SPOT_ON_DEMAND_FALLBACK=true alongside SPOT_INSTANCES=true for cluster-bot AWS launch jobs. This tells the install step to keep one worker MachineSet on-demand as a fallback when spot capacity is exhausted.

Problem

Cluster-bot AWS launches currently have a ~22% failure rate due to spot capacity exhaustion — all 3 worker MachineSets are spot, so if capacity is unavailable in all AZs, no workers provision and the install times out (~70 minutes wasted per failure).

Over the last 7 days: ~41 genuine failures out of 183 meaningful runs of release-openshift-origin-installer-launch-aws-modern.

Change

One line added in pkg/manager/prow.go: when UseSpotInstances(job) is true, also set SPOT_ON_DEMAND_FALLBACK=true in the multi-stage test environment. This tells the install step to pick the worker MachineSet with the lowest replica count and leave it on-demand.

Cost Impact

  • Per-cluster increase: ~$0.52 (+21%) — one m6i.xlarge worker moves from spot ($0.044/hr) to on-demand ($0.192/hr)

  • Monthly net increase: ~$540 (+16%)

  • Monthly savings: ~176 fewer failed-then-retried launches, saving ~$13,200/month in engineer wait time (24:1 ROI)
  • Dependency

    Requires openshift/release#86529 which adds SPOT_ON_DEMAND_FALLBACK support to the ipi-install-install step. That PR must be merged first.

    ---
    AI-generated. Review for accuracy.

    @RadekManak requested from Slack

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    Bug Fixes
    Matched test environments using spot instances now enable on-demand fallback alongside the spot-instance setting. This ensures the fallback option is available when spot capacity is unavailable.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 233 lines (+174 / -59) across 2 files Reviewer: redhat-chai-bot Review duration: 2228m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 233 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.326
    Real PR Conversation Timeline
    1 comments
    "Review active on #646"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 37.1% (MEDIUM) · Higher = larger blast radius
    37.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.8% · Safe to merge
    19.8%