Resize planner web formation to a single Standard-2X dyno
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 18/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 领域
- devops, infrastructure
调研方向
Review the Heroku formation change and runtime metrics described in the issue, then monitor the single Standard-2X dyno through the two-week evaluation window, including at least two workshop evenings. Compare memory, swap, load, latency, and errors with the stated fail signals and outcome criteria. Done means recording whether the trial passes or fails and whether the Standard-1X trial should be reconsidered.
由索引模型根据 Issue 内容生成。
描述
Resize planner web formation to a single Standard-2X dyno
Tracks the web dyno right-sizing experiment: 2× Standard-2X ($100/month) → 1× Standard-2X ($50/month), applied 2026-10-11. The evaluation window is two weeks and must cover at least two workshop evenings. The next step down (a single Standard-1X, $25/month) is on hold until this trial shows the memory headroom in practice.
Context
Heroku runtime metrics from the log drain (7 days, 2026-10-04 → 10-11, recorded while the formation was 2× Standard-2X) showed both web dynos far below the limits of a single Standard-2X. Standard-2X provides 1 GB RAM and a 2× CPU share per dyno.
Preboot is enabled (#2962), so a single dyno gets rolling deploys: the old process keeps serving until the new one finishes booting.
Before (7 days on 2× Standard-2X, per dyno)
| Metric | Value |
|---|---|
| Traffic | ~11k requests/day; per-minute p99 56 |
| load_avg_1m | p99 0.10–0.14, max 0.64 |
| memory_total | p50 316–320 MB, p95 372–422 MB, max 403–472 MB |
| memory_rss | p50 285–320 MB, max 351 MB |
| Swap | nonzero in 40% of samples, host-driven; one host moved 138 MB to swap on 10-08 while RSS held 288 MB |
| R14 / R15 | 0 occurrences |
| Latency (p95 of view+db runtime) | 50–103 ms daily, 4 errors in ~77k requests |
Response-time work this quarter (#2886–#2890 and follow-ups) brought p95 from 788/732 ms to 50–103 ms daily; those changes cut allocations and CPU, not the process memory baseline.
Change
2026-10-11 ~11:11 UTC: heroku ps:scale web=1:standard-2x. Formation is now web=1:Standard-2X; console, rake, release, and worker stay at 0. Delayed jobs are unaffected by the resize: the Heroku Scheduler runs them on one-off dynos (#2942).
Drain evidence at the switch: web.2 received SIGTERM and exited cleanly (status 143) while web.1 kept serving.
After (first ~3 hours — preliminary)
The remaining dyno was fresh (it had cycled that morning), so these numbers are warmup-biased and exclude any evening peak:
| Metric | Value |
|---|---|
| memory_total | p50 288 MB, max 303 MB |
| Swap | 0% of samples |
| load_avg_1m | p99 0.21, max 0.63 |
What to watch (fail signals)
- Any R14 (memory quota exceeded) in web logs.
memory_totalsustained above 800 MB, or p95 above 700 MB.- Swap p95 above 50 MB (swap itself is host-driven; treat trends, not single samples).
load_avg_1mp99 above 1.5 during 18:00–22:00 UTC evening peaks.- 5xx rate above 10/day or p95 latency above 300 ms.
- Formation drift: any web dyno other than web.1 appearing in metrics.
Non-memory risks of a single dyno: a crash or hang has no sibling to take traffic until Heroku auto-restart (seconds to minutes); maintenance restarts are a full outage window.
Outcome criteria
Pass: memory settles below ~70% of quota (≈700 MB) with zero R14 across the evaluation window, and latency and error rates stay unchanged from the before window. That pass also yields real single-dyno memory data at the full traffic level.
A steady-state memory_total below ~250 MB would also reopen the case for trying Standard-1X (512 MB quota); below that mark, schedule a guarded one-week trial. Baseline memory is structural (boot, first-touch warmup, slow accumulation), and the caching PRs (#2978, #2964, #2954) show why allocation work did not lower it: request-path allocations are transient, so they cut CPU time and latency, not the process floor.
Fail: any fail signal above. Revert is instant: heroku ps:scale web=2:standard-2x.
- 主要语言
- Ruby
- 星标
- 105
- 派生
- 206
- 平均合并
- 19 小时 48 分钟
- 30 天内合并 PR
- 83
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
codebar/planner 的其他 Issue
-
DashboardQuery eager-loads workshop_host with :sponsors in one join (same host-loss trap as #2975)未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 28/100
codebar/planner#3008 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 30/100
维护者通常 1 天内回复
相似的 Issue
-
agent:triaged bug bughunt pm:bundler priority:p1
难度 2/5 1-3 小时 新手友好度 70/100
SocketDev/socket-patch#1573 · 1 条评论 ·
维护者通常 1 天内回复
-
bug chat verified
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 6 天内回复
-
🐞 bug pending triage
难度 2/5 1-3 小时 新手友好度 72/100
CircuitVerse/CircuitVerse#8031 · 2 条评论 ·
维护者通常 1 天内回复
-
BazaRb::Fake#enter rejects dotted badges accepted by BazaRb#enter可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 1/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
riscv/riscv-unified-db#2740 ·
维护者通常 1 天内回复