← Back to Pull requests

Add --ip-range to bound the simulated IP range #31

Closed
unknown closed this pull request without merging on Oct 14, 2026 21:48 UTC
View on GitHub
unknown unknown commented on Oct 14, 2026 21:33 UTC
Author

Every pilot-load process hands out simulated IPs from the same starting point (10.0.0.10 in
pkg/simulation/util). Pod, node and WorkloadEntry addresses all come from util.GetIP(). So two pilot-load
instances against the same cluster simulate workloads with overlapping addresses, and istiod and the simulated
ztunnels see address collisions between them.

We run pilot-load as a companion to a load tool: a steady "baseline" world for the whole run, plus short-lived worlds
started and stopped on a schedule to create churn. They run concurrently in one cluster, so they need disjoint ranges.

This adds a global flag that takes a CIDR, so a range is bounded on both sides:

--ip-range string   IPv4 range for simulated pods, nodes and workload entries, in CIDR notation: the address is the
                    first one assigned, the prefix bounds the range; give concurrent pilot-load instances against one
                    cluster disjoint ranges (default "10.0.0.10/8")

  • 10.64.0.10/16 hands out 10.64.0.10 up to 10.64.255.255.

  • When a range is exhausted, GetIP panics with the range in the message, instead of silently running into

  • another instance's addresses.
  • The default, 10.0.0.10/8, keeps today's addresses. The only change is the theoretical bound at

  • 10.255.255.255, which previously ran on into 11.x.
  • Validation: IPv4 only, since GetIP increments a 4-byte address. A bare address without a prefix is rejected.

  • It's applied in GetArgs, before any simulation starts.
  • Unit tests cover the increment within a range, exhaustion, invalid input (bare address, bad CIDR, IPv6) and the

  • unchanged default.

    Usage:

    pilot-load cluster --config base.yaml  --ip-range 10.0.0.10/12    # 10.0.0.10 – 10.15.255.255
    pilot-load cluster --config burst.yaml --ip-range 10.64.0.10/16   # 10.64.0.10 – 10.64.255.255
    

    Diff: 235 lines (+176 / -59) across 2 files Reviewer: howardjohn Review duration: 14m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 235 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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
    Diff Size diff_size
    0.327
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #31"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 14.7% · Safe to merge
    14.7%