Commit 29a0aea
authored
Warm the Start server graph on isolate first fetch (#1681)
Page latency was p50 19-49ms daily up to 2026-08-16 and 2728ms the day
after the 21:20 deploy. Not load: 2026-08-11 served more total traffic
(5.43M vs 4.38M) with pages at p50 41ms, so the volume explanation does
not hold.
What changed is where MCP work runs. The old hibernatable Agent bridge
handed /mcp to the DO almost immediately; the v2 stack authenticates and
dispatches in the worker, spinning far more worker isolates. /mcp returns
before fetchHandler, so those isolates never load the Start graph, and
page requests land on them cold paying loadEntries: p50 3.1s, against 33ms
for the request's own work and 9-104ms warm.
Re-lands #1628. Its revert came during the Aug 17 storm (11.67M requests
against a 2.6-4.3M baseline); volume is back to baseline and
exceededMemory is currently zero. START_GRAPH_WARM=false disables it.1 parent 332955f commit 29a0aea
3 files changed
Lines changed: 62 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
181 | 228 | | |
182 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
183 | 234 | | |
184 | 235 | | |
185 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments