Commit 5608ab7
committed
fix(cloud): cold-start tuning for the headless serve container
First real CF cold start 503'd (companion didn't bind within the 60s poll).
- wrangler.toml: instance_type standard(½ vCPU) -> standard-3 (2 vCPU/8GiB);
WebKitGTK + Xvfb init needs real CPU. Also clears the standard->standard-1
rename warning.
- index.ts: health poll 60s -> 120s for a heavy first-boot init.
- start-serve.sh: skip if a serve host is already running (the Worker calls
startProcess on every not-ready request; a 2nd serve fought for the port).1 parent 0fdce48 commit 5608ab7
3 files changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
35 | 43 | | |
36 | 44 | | |
37 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments