From 153a2e100ffa8e68f9b434dd754d648361646251 Mon Sep 17 00:00:00 2001 From: Rhys Sullivan <39114868+RhysSullivan@users.noreply.github.com> Date: Thu, 20 Aug 2026 08:34:50 -0700 Subject: [PATCH] Restore targeted placement to aws:us-east-1 Reverts the wrangler config change from #1693. Since that deploy user_store.getOrganization went from ~12ms to ~300ms p50 and mcp.auth.authorize_organization from ~70ms to ~400-700ms, which is the Worker no longer sharing a region with Hyperdrive. --- apps/cloud/wrangler.jsonc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/cloud/wrangler.jsonc b/apps/cloud/wrangler.jsonc index 3fa69306e..3578de6d2 100644 --- a/apps/cloud/wrangler.jsonc +++ b/apps/cloud/wrangler.jsonc @@ -94,6 +94,14 @@ "bucket_name": "executor-cloud-blobs", }, ], + // Pins the Worker to the Hyperdrive/Postgres region. Added in #420 to fix + // MCP Hyperdrive connection pressure; dropped in #1693 as a placement + // experiment, which took `user_store.*` from ~12ms to ~300ms because every + // query started crossing regions. Restored to measure that against the + // JWKS verify time the experiment also moved. + "placement": { + "region": "aws:us-east-1", + }, "worker_loaders": [ { "binding": "LOADER",