You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warm the Start server graph on isolates that persist (#1679)
Timing the import apart from the request's own work in production: the
loadEntries import is p50 3.1s, the request's work is p50 33ms, and a warm
isolate answers in 9-104ms. The same bundle in local workerd serves the
same path in ~3ms, so this is a cold-isolate cost on production metal, not
slow code.
Nearly every page request pays it: /mcp dispatches before fetchHandler, so
MCP traffic creates and occupies isolates without ever loading the graph,
and worker.dispatch ran 1,666 requests across 1,608 isolates.
#1628 warmed on every isolate's first fetch and was reverted because it
pulled the SSR graph into every isolate including single-shot MCP ones,
taking memory kills from ~500-900 to 3.7k-9.4k per 5min. Wait for evidence
the isolate persists instead: warm only after it has served a couple of
fetches. START_GRAPH_WARM=false disables without a deploy.
0 commit comments