Skip to content

perf(cloud): Smart Placement on production (#15513 prod leg) - #15551

Merged
NubsCarson merged 1 commit into
developfrom
perf/smart-placement-prod
Jul 8, 2026
Merged

NubsCarson merged 1 commit into
developfrom
perf/smart-placement-prod

Conversation

@NubsCarson

Copy link
Copy Markdown
Member

Prod leg of #15513 (nubs green-lit full-send; staging leg #15521 merged earlier tonight).

Soak findings (staging, ~1.5h)

  • placement: {"mode":"smart"} confirmed applied on eliza-cloud-api-staging via the Workers settings API
  • No measurable ttfb change yet — staging traffic is too thin for Cloudflare's placement analyzer to qualify the Worker (analysis is traffic-driven). Prod's real volume is what it actually learns from, so the soak can't conclude on staging alone.

Why shipping to prod is safe anyway

Smart Placement is fail-safe by design: Cloudflare runs its analysis and only moves execution when it concludes performance improves for the observed request shape (ours is back-end-heavy: api.cerebras.ai / api.openai.com / Hyperdrive subrequests per turn); requests keep default placement otherwise. Worst case = no change. Expected best case = the residual ~0.5s Worker→origin hop collapses on inference calls.

Verification plan (post-deploy)

Warm ttfb trend on elizacloud.ai/api/v1/chat/completions over the next hours (baseline tonight: 0.76–1.1s) + the placement status via the settings API. Rollback = delete the line + redeploy (instant).

bunx wrangler deploy --env production --dry-run clean.

🤖 Generated with Claude Code

Staging soak: mode=smart applied cleanly (verified via the Workers
settings API) but staging traffic is too thin for Cloudflare's placement
analyzer to qualify it — prod volume is what it learns from. Fail-safe by
design: CF only moves execution when its analysis concludes it improves
performance for the back-end-heavy inference requests; otherwise requests
keep default placement. Rollback = delete the line + redeploy.
@NubsCarson
NubsCarson merged commit 1bc8eae into develop Jul 8, 2026
18 of 21 checks passed
@NubsCarson
NubsCarson deleted the perf/smart-placement-prod branch July 8, 2026 23:35
@claude

claude Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Claude encountered an error —— View job


I'll analyze this and get back to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant