when reasoning pays off

Experiment note · exp005 · two-deployment pay-as-you-go spillover proxy (Phase 2) · what happens when the cache pool is really split

exp005 — Split the cache pool for real, and the clever policy lost by more

By Hyeonsang Jeon · Global Black Belt, Cloud & AI Apps

The previous note (exp004) simulated spillover on a single deployment. The two policies came out essentially tied (−0.1657 pp), and we wrote this down at the time: “the real verdict belongs to Phase 2.” This is that Phase 2. Now there are two deployments, the throttling is real, and the primary and spillover routes hold physically separate cache pools.

So this prediction felt natural: once the cache pools are really split, the proactive policy that protects the primary ahead of time might finally pay off. Our pre-registered reading had two branches: if the gap widens, the cache-rebuild cost is real; if it stays similar, cache-pool separation is a smaller factor than policy timing.

The measurement overturned it harder this time. Sustained-phase steady-state cache hit was reactive 99.2337%, proactive 98.2414% — the proactive policy was 0.9923 pp lower (about six times the Phase 1 gap). On top of that, proactive kept clinging to the throttled primary and took 167 real 429s (“not right now” signals) to reactive's zero, and it cost $0.91 more. This note retraces those 22 minutes as design → inputs → prediction vs. measurement → the two curves → decision — split the cache pool, and the clever policy lost by more.

What happens when the primary and spillover deployments are really separate?

The test models a pattern in which a provisioned throughput unit (PTU) deployment nears its ceiling and spillover sheds some traffic to a fallback deployment. Phase 1 faked that fallback route inside a single deployment, as a label — the primary and fallback routes saw the same cache (the store that reuses prompts to save cost). So the policy difference barely registered on the cache.

Phase 2 used two GlobalStandard pay-as-you-go deployments as a proxy for that provisioned-throughput pattern. It measured routing, throttling, and separate cache pools directly; its applicability to PTU billing and capacity remains an inference.

Phase 2 removes that doubt. Make the primary and fallback genuinely different deployments and, by Azure design, their cache pools split too. Now “which deployment did you route to” registers directly on cache temperature. Concentrate on one, and that pool stays hot; split across two, and both go lukewarm.

If you run a separate primary + fallback deployment pair, this note is the closest match. To the question — “will splitting traffic early to protect the primary keep the cache warmer?” — this experiment gives one measured answer, and the answer is closer to ‘don't split.’

Don't take the conclusion on faith — print the numbers yourself

Token spend is zero. The first two lines print each policy's inputs, variables, and artifacts verbatim; the last line recomputes the headline number from the published aggregate and checks it against this note (no network, no credentials).

# Print each policy's (reactive · proactive) input -> variable -> artifact card (no network)
python3 -c "import experiments; print(experiments.describe('exp005_dual_spillover_reactive.yaml').summary())"
python3 -c "import experiments; print(experiments.describe('exp005_dual_spillover_proactive.yaml').summary())"

# Recompute sustain-phase cache hit from the published aggregate and check it against this note (zero tokens)
python3 -c "import json; s=json.load(open('benchmarks/05-dual-spillover/analysis.json'))['per_policy_stats']; print('sustain cache-hit  reactive=%.4f%%  proactive=%.4f%%  gap=%+.4f pp' % (s['reactive']['sustain']['cache_hit_ratio']*100, s['proactive']['sustain']['cache_hit_ratio']*100, (s['proactive']['sustain']['cache_hit_ratio']-s['reactive']['sustain']['cache_hit_ratio'])*100))"

Open the repo on GitHub & ⭐

Reproducing the live load needs Azure credentials and real spend — this is a genuine dual-deployment load test. The credential-free path (re-deriving analysis.json from the published raw JSONL) is written up in the reproducibility footer of benchmarks/05-dual-spillover/analysis.md.

This time the cache pool is really split

Why we measured this. Phase 1's tie left one escape hatch: with a single deployment, the cache pool was shared. So we couldn't tell whether the policy difference ‘never registers’ or ‘didn't register because the cache was shared.’ Phase 2 closes that hatch. It genuinely splits the cache pool and checks whether the verdict still holds.

So the hypothesis rides on the size of the gap. The pre-registered reading has two branches — if the Phase 2 gap grows clearly larger than Phase 1, the cost of splitting traffic when cache pools are separate (cache-rebuild cost) is real; if it stays similar, cache-pool separation is a smaller factor than policy timing. Either way, the measurement picks the answer.

This is a mitigation comparison, not a root-cause hunt. The strong claim that ‘spillover itself causes cache decay’ already lost force in field observation. This experiment isn't the place to find the cause — only to race the two mitigation policies and see which is better.

Why dual deployment. Both deployments use the GlobalStandard pay-as-you-go tier. The primary (ptu-deploy-throttled) gets a deliberately low ceiling of 60,000 TPM (tokens per minute) so the ~30K-token load emits real 429s. The spillover (gpt-5.2) gets a roomy 500,000 TPM. Different deployment name means a different cache pool — the ‘physical separation’ Phase 1 only faked is real here.

There is one question. On top of physically separate cache pools, does proactive spillover protect the cache better than reactive?

Design (load). The same 22-minute load Phase 1 used, byte-for-byte, flows to both policies — warmup 2 min (0.3 requests per second) → ramp 10 min (0.5→2.5 requests per second) → sustain 10 min (2.0 requests per second). effort=low, a system prompt of about 30K tokens (pinned byte-for-byte across both runs with SHA-256 98d3a5…088a, corpus_seed 4242). Scheduled requests are 2,136 per policy (warmup 36 · ramp 900 · sustain 1,200).

Exactly one axis varies — policy.type flips between reactive and proactive. Prompt, load, model, effort, and both deployment ceilings are fixed, so the difference in the two artifacts comes only from the policy.

Pre-registered prediction

If the cache pools are really split, proactive might pay off. The registered decision line is the size of the gap — larger than Phase 1 means the cache-rebuild cost is real; similar means separation is a minor factor.

This experiment's role

The high-fidelity re-measurement after Phase 1's shared-cache floor. When the primary/spillover cache pools physically split, does the policy difference really register on cache, cost, and 429s?

What it consumed and what it left behind

The experiment's inputs and outputs are the repo's actual files, not a hand-written summary. So you can retrace it from input to output in a single line.

Input (in)

Policy definitions: experiments/exp005_dual_spillover_reactive.yaml, …_proactive.yaml (only policy.type differs).
Two deployments: primary ptu-deploy-throttled (60,000 TPM) · spillover gpt-5.2 (500,000 TPM).
Pinned: both runs' system prompt fixed by SHA-256 (98d3a5…088a) — guaranteeing both policies received a byte-for-byte identical prompt.

Artifacts (out)

Raw calls: runs/*.jsonl (+ per-request *.summary.json, with per-response spillover headers).
Aggregate: analysis.json · analysis.md.
Curves: results/dual-spillover-curves/*.png·.csv (per-endpoint and aggregate cache hit, real-429 timeline).

Reactive ran all 2,136 requests to completion (completed = scheduled = 2,136). Proactive completed 2,303 / scheduled 2,136 — the extra 167 are real 429s, each logged as its own failed-attempt row, carrying zero tokens and not affecting aggregates. Real 429s were 0 for reactive · 167 for proactive (all on the throttled primary). dry_run=false, dirty=false, no halt. No rows were dropped — what was kept and why is covered under Transparency below.

The prediction missed again — harder

What we predicted

Once the cache pools are really split, the proactive (proactive) policy might finally pay off — at minimum, a place where the gap's direction could flip.

What came out

Sustain cache hit was reactive 99.2337% vs proactive 98.2414% — proactive was 0.9923 pp lower (about six times the Phase 1 gap of −0.1657 pp). Real 429s were 0 vs 167.

Verdict: splitting the cache pool made proactive pay off even less. Of the two pre-registered branches, the measurement chose ‘the gap widens.’ That is, when cache pools split, the cost of splitting traffic ahead of time (cache-rebuild cost) was real, and it was billed to proactive. The Phase 1 doubt — “did it not register because the cache was shared?” — now has an answer: split the cache for real, and the policy that splits traffic loses.

The clever policy lost by more

The table below is the sustain 10-minute steady state — the window where the load settles at its target and the hypothesis applies. The numbers are re-cited from the published aggregate analysis.md §5 and §7.

Policy      Sustain spillover   Sustain cache hit (per-min mean ± std)   Real 429   Note
reactive    98.75% engaged      99.2337%  (±0.0026 pp)                   0          Baseline · concentrated on one hot pool
proactive   67.95% engaged      98.2414%  (±4.3726 pp)                   167        Split across two → both went lukewarm
Delta(pro−re)   —               −0.9923 pp                               +167       ~6x the Phase 1 gap (−0.1657 pp)

Both curves mostly ride near 99.2%. Reactive is rock-steady at std 0.0026 pp — it concentrated into a single spillover pool that stayed hot the whole time. Proactive, by contrast, swings with std 4.3726 pp. Two things cause it: 154 sustain 429s from the throttled primary (zero-token failure rows) and 12 cache misses (primary 7 · spillover 5) from splitting traffic across two pools — those dig per-minute troughs that drag the aggregate down to 98.2414%.

Widen to the full run (warmup+ramp+sustain) and the direction holds — reactive 99.0479% vs proactive 98.2112%, reactive 0.8367 pp higher. In Phase 1 widening the window flipped the sign; in Phase 2 reactive leads in every window.

60-second rolling cache-hit curves (both policies, aggregate). The x-axis is request progress; the y-axis is cache-hit ratio. Reactive (the sibling run) concentrates on one pool and holds a smooth line near 99.2%, while proactive (this run) is split across primary and spillover and dips more often and more deeply — the throttled primary's real 429s and the two pools' cache misses punch through the curve. Steady state is reactive 99.2337%, proactive 98.2414%, a 0.9923 pp gap. Source: results/dual-spillover-curves/policy_comparison_aggregate.png.
Rolling cache-hit ratio time series for the reactive and proactive policies. The reactive curve is smooth near 99.2%, while the proactive curve dips more often and more deeply. Sustain steady state is reactive 99.2337%, proactive 98.2414%, a gap of 0.9923 pp.

Why they split — splitting cools both pools

This time the two policies left genuinely different marks on the cache — and that's exactly where Phase 2 parts from Phase 1. Reactive crossed to the spillover deployment on the first warmup request and, through the whole sustain window, poured 98.75% of traffic into that one pool. Keep one pool warm, and sustain cache misses are zero and the pool holds at 99.2336%. Real 429s are zero too — it barely touched the throttled primary.

Proactive did the opposite, and that's what tripped it. Trying to protect the primary, it split traffic, so sustain spillover engagement stalled at 67.95% — the other ~43% kept going to the throttled primary. That deployment couldn't take the 30K-token load and emitted 167 real 429s, and with traffic scattered across two pools neither got as warm as reactive's single pool — sustain cache was 96.7534% on the primary and 98.6942% on the spillover, both cooler than reactive's 99.2336%.

Cost and latency point the same way. The two runs used nearly identical total tokens (reactive 45,850,205 · proactive 45,851,851), yet full-run cost was reactive $17.895660 vs proactive $18.806026 — proactive is $0.910366 more. The reason is purely cache temperature: proactive's lower cache hit pushed about 380K input tokens from the cached rate ($0.175/1M) to the full rate ($1.75/1M). Sustain time-to-first-token is faster for reactive too (median 7,153.9 ms vs 7,926.6 ms), and the full-run 95th-percentile latency (p95) spikes to 34,631.71 ms for proactive — 429 backoffs stacking on top of real latency.

In short: once the cache pools really split, the clever idea — ‘split traffic to protect the primary’ — turned into rebuilding cache twice and paying the throttle penalty (429s) on top. What paid off was simplicity — reactive, concentrating on one pool and keeping it hot.

Every smudge on the numbers, left in

No measurement is perfectly clean. We write down the marks this experiment left without erasing them — hiding them would make the next person stumble in the same spot.

How far to trust this

This result comes from two deployments in one Foundry resource, one capacity tier each, one load profile, one run. It's safer to take the method and direction than the numbers themselves.

So what should the default be

When the primary is throttled and a roomy spillover pool exists, make simple reactive (reactive) the default. The simple rule — pour the failed request and the next few into the spillover pool and keep that one pool hot — beat the proactive policy that splits traffic early to protect the primary: it protected 0.9923 pp more cache (sustain), cost $0.910366 less, and took 0 real 429s instead of 167. When cache pools are physically separate, splitting traffic is a penalty that cools both pools at once. Re-measure if the workload shape changes.

So the next person stumbles less

Leaving evidence isn't only about recording the wins. A missed prediction — why it missed and how far to trust it — also has to survive so it can be reused in the next decision. So this note connects back to Phase 1 and the earlier experiments.

Next experiment. This run drove spillover with a custom router. Next is putting Azure native spillover under the same load and, using the per-response spillover headers we saved, checking whether it behaves the same as the custom router.

Reproduce it yourself and leave a ⭐

Sources & evidence boundary

This note, too, re-cites published aggregates with no new measurement. The evidence and limits, including the two-deployment, one-resource boundary, are below.