Cloudflare Durable Object 无限循环触发 10,811 美元账单,作者全额支付并迁出
Serverless Horrors $10,811.41
一名开发者的 Cloudflare 项目因一个 vibe coding 产生的 Durable Object alarm 无限循环,在一次事件中执行了 6 万亿次读写操作,产生 10,811.41 美元的账单。
记录了一次具体计费事故的成因与后续处理,可作为同类无服务器架构设置预算上限的参考。
Hit by a Cloudflare bill assassin: a $10k bill. The cause was a Durable Object alarm in an infinite loop in one project, which did 6 trillion reads and writes. Vibe coding failed me.
Update from the author:
- Paid the full Cloudflare bill (US$10,811.41) — “the second most expensive lesson of my life”.
- The support ticket for a reduction only got bot replies in a loop.
- Cloudflare staff contacted on X and other channels said they could only “take a look”, nothing more.
- All projects will move off Cloudflare to self-hosted VPS.
Conclusion: One vibe-coded Durable Object alarm kept rescheduling itself forever. Cloudflare has no hard spending limit, so the loop ran until the invoice came. Not refunded — the author paid in full.
tldr: An infinite loop in a Durable Object alarm did 6 trillion reads/writes and caused a $10,811.41 Cloudflare bill that was not refunded.
来源:Hacker News · serverlesshorrors.com