← Back to Pull requests

Graduate the HA experiment to the release-blocking and presubmit 5k jobs #37662

Open
unknown opened this pull request with 650 lines diff across 8 files
View on GitHub
unknown unknown commented on Aug 11, 2026 14:59 UTC
Author

Graduates the HA experiment by moving CONTROL_PLANE_COUNT: "3" from preset-kops-scalability-gce-experimental into preset-kops-scalability-gce-5000-node, then clearing the experiment slot.

Results

HA (3 masters): PR kubernetes/kubernetes#139476 a, b, c. Zero changed files, so master against master.
Not HA (1 master): periodic ci-kubernetes-e2e-gce-scale-performance-5000, 15 runs. All runs in both arms pass.

"Base" is the median of those 15 runs. Rows marked n=1 come from a single baseline Prometheus snapshot.

| | HA | base | ratio |
|---|---|---|---|
| API tail latency p99, worst verb | 483 ms | 1,202 ms | 0.40x |
| service churn, steps 02+22+28 | 1,023 s | 1,549 s | 0.66x |
| apiserver memory per box | 44 GB | 63 GB | 0.70x |
| watch events per apiserver | 257M | 672M | 0.38x |
| kubelet pod writes throttled (429) | 0 - 34,758 | 79,625 | n=1 |
| load overall | 3,925 s | 4,573 s | 0.86x, null |
| pod startup p99 | 1,110 ms | 1,167 ms | 0.95x, null |
| terminated pod watchers | 837 | 317 | 2.6x worse |
| 403s on configmaps, secrets, SAs | 549 - 64,369 | 145 | worse, n=1 |

1. API tail latency

APIResponsivenessPrometheus_load, resource scope p99, ms.

| verb | HA a | HA b | HA c | HA med | base med | ratio |
|---|---|---|---|---|---|---|
| GET | 382 | 368 | 285 | 368 | 737 | 0.50x |
| PUT | 471 | 325 | 324 | 325 | 963 | 0.34x |
| PATCH | 698 | 391 | 353 | 391 | 895 | 0.44x |
| DELETE | 618 | 356 | 314 | 356 | 1,202 | 0.30x |
| POST | 483 | 333 | 570 | 483 | 1,055 | 0.46x |

This is the non-enforcing artifact and reports roughly the worst 5-minute window. The enforced whole-run p99 moves the same way.

2. Wall clock and throughput

| | HA a | HA b | HA c | HA med | base med | base range | ratio |
|---|---|---|---|---|---|---|---|
| load overall | 3,925 s | 3,583 s | 4,984 s | 3,925 s | 4,573 s | 3,393 - 7,324 | 0.86x, null |
| write QPS | 2,369 | 2,374 | 1,738 | 2,369 | 1,735 | 1,358 - 2,105 | 1.37x |

Write QPS decomposes into 1.09x more write requests in a 1.165x shorter run. Neither factor is individually significant.

Where the extra writes are:

| whole run | single | HA a | HA b | HA c | base range |
|---|---|---|---|---|---|
| writes to pods | 1.65M | 2.16M | 2.34M | 2.46M | 1.58 - 1.75M |
| pods throttled, 429 | 79,625 | 34,758 | 8,147 | 0 | n=1 |
| pods/status PATCH, 200 | 1.05M | 1.54M | 1.71M | 1.84M | n=1 |
| system PL nominal seats, fleet | 103 | 309 | 309 | 309 | |

APF seats are allocated per apiserver. Every HA run is outside the baseline range on pod writes.

3. Fan-out

apiserver_watch_events_total per apiserver, whole run. Counts deliveries, so it falls whenever watchers split across replicas.

| | HA a | HA b | HA c | HA med | base med | ratio |
|---|---|---|---|---|---|---|
| all resources | 292M | 214M | 257M | 257M | 672M | 0.38x |
| endpointslices | 222M | 146M | 186M | 186M | 475M | 0.39x |
| pods | 7.7M | 8.4M | 6.4M | 7.7M | 12M | 0.64x |

4. Terminated watchers

apiserver_terminated_watchers_total, cluster total, whole run.

| | HA a | HA b | HA c | HA med | base med | base range |
|---|---|---|---|---|---|---|
| endpointslices | 820 | 182 | 2,048 | 820 | 20,442 | 0 - 57,583 |
| pods, all unfiltered | 1,597 | 837 | 424 | 837 | 317 | 111 - 437 |
| all resources | 2,427 | 1,021 | 2,475 | 2,427 | 20,735 | 132 - 58,085 |

Endpointslices down, pods up. The pod increase is likely the extra write traffic from the per-apiserver APF seats: pod changes reaching the watch cache are 2.45 / 2.63 / 2.75M per apiserver against a 1.95M baseline.

Pod kills by len(c.input), the watcher's buffer depth at the moment it was closed. 1000 is maxWatchChanSizeWithIndexWithoutTrigger, the cap.

| len(c.input) | single | HA a |
|---|---|---|
| 1000, buffer full at the cap | 5 | 763 |
| below the cap, 9 - 683 | 135 | 107 |
| total | 140 | 870 |

Below-cap kills barely move. All the growth is in full buffers. Probably just the higher pod write rate: 1000 events is about 370 ms at 2,700/s, so there is not much room to fall behind.

5. Node-authorizer 403s

| | single, n=1 | HA a | HA b | HA c |
|---|---|---|---|---|
| 403s on configmaps, secrets, serviceaccounts | 145 | 64,369 | 20,378 | 549 |
| LIST configmaps + secrets | 6,346 | 40,447 | 12,047 | 10,074 |

The authorizer graph is built off the same pod informer (graph_populator.go:42), so this is late pod events again, not a separate problem.

6. etcd

etcd performance is worse but that's expected given that HA needs raft consensus. It's interesting that it's sort of invisible at apiserver get p99 because the raft overhead is neglected by better performance due to less watchers

| metric (ms) | base med | HA med | HA vs base |
|---|---|---|---|
| apiserver GET p50 | 3.81 | 5.61 | 1.47x worse |
| apiserver GET p90 | 559.8 | 24.0 | 23x better |
| apiserver GET p99 | 2308 | 603 | 3.8x better |
| etcd Range request p50 | 2.52 | 7.25 | 2.87x worse |
| etcd Range request p99 | 11.64 | 31.9 | 2.74x worse |
| etcd mvcc Range p99 (storage only) | 2.45 | 5.18 | 2.12x worse |
| etcd Txn request p99 | 11.84 | 30.5 | 2.58x worse |
| etcd fsync p99, worst member | 3.31 | 7.91 | 2.39x worse (3 disks, not raft) |
| etcd fsync p99, leader | 3.31 | 3.19 | no change |
| etcd backend commit p99, leader | 9.32 | 12.13 | no change (overlap) |
| etcd CPU core-s per 1M puts | 737 | 730 | no change |

Diff: 650 lines (+487 / -163) across 8 files Reviewer: Jefftree Review duration: 77715m
All Vouch review confidence checks passed
Residual risk 0.33 = Change Risk (0.59) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.59 · 650 lines diff across 8 files
0.59
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%
44%
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.388
Shallow Review Depth shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #37662"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 44.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: 59% (MEDIUM) · Higher = larger blast radius
59%
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: 44.7% · Lower = rushed or shallow review
44.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: 32.6% · Safe to merge
32.6%