原帖报告已收录: 金额与进展来自原帖及关联回复。
Jay(@Cyberlane):两个自用小数据库产生 $513.20 D1 账单,Cloudflare 确认退款。
Jay(@Cyberlane)称两个只有自己使用的小型 D1 数据库产生了超过 $500 的读写账单。他随后引用发票:9 月 17 日至 10 月 16 日写入 452,256,462 行($453)、读取 60,197,421,138 行($60.20),D1 合计税前 $513.20。个人资料显示负责 Cloudflare Storage & Databases 的 Tyson Trautmann 公开回复,并拉入 D1 工程团队。
发生了什么
最新报告进展
作者报告 Cloudflare 已确认会退还其 D1 费用,工程师仍在调查写入量。退款为作者自述,尚未报告退款到账。Cloudflare 人员建议跳过值未变化的行以减少写入。
查看时间线中的最新进展原始来源
每项来源链接对应的报告或回复。
案例时间线
作者报告账单
到 𝕏 阅读作者称这两个数据库只服务自己使用的两个小应用,并称 D1 是骗局,对比此前独立服务器每月约 €30 的费用。
Jay
@Cyberlane · 𝕏 原帖
Anybody that is considering using @Cloudflare D1 for simple database, don’t. It’s a total scam. I had 2x small databases on there for two little apps of mine, that only I use, so nothing public or heavily used. They sent me a bill for over $500 USD for reads and writes!!
作者引用发票用量
到 𝕏 阅读作者列出 9 月 17 日至 10 月 16 日写入 452,256,462 行($453)、读取 60,197,421,138 行($60.20),税前 $513.20,主要是写入。
Jay
@Cyberlane · 𝕏 原帖
@Cloudflare Checked the invoice now: 452,256,462 rows written ($453) and 60,197,421,138 rows read ($60.20) for Sep 17–Oct 16. D1 total: $513.20 before tax, mostly writes. Those are the invoice quantities. They confirm the bill, not the cause of the usage.
Cloudflare 人员表示协助
到 𝕏 阅读Tyson Trautmann 称很可能有简单的查询优化方法,并请作者提供账户信息以私信跟进。
Tyson Trautmann
@TysonTrautmann · 𝕏 原帖
@Cyberlane @Cloudflare Hey Jay, happy to help here. Think there is an easy way to optimize your queries that should eliminate almost all of that cost. Send me account info so I can confirm that I'm looking at the right thing and I'll follow up in DMs
作者称已开工单且预算提醒已送达
到 𝕏 阅读作者称 Cloudflare 工程师已表示协助、工单已开、预算提醒已送达,写入量原因仍未确认。
Jay
@Cyberlane · 𝕏 原帖
Quick update on the D1 bill: Cloudflare engineers have offered to help, and I have a support ticket open. Thanks to everyone sharing useful suggestions. I’ve also confirmed the budget alert arrived. Most of the D1 cost was writes. I still don’t have a confirmed explanation for that volume, so I’ll share more once I do.
人员指出未变化行的写入
到 𝕏 阅读Tyson Trautmann 称跳过值未变化的行可削减大部分写入,D1 工程团队会在工单中跟进。
Tyson Trautmann
@TysonTrautmann · 𝕏 原帖
@Cyberlane @Cloudflare At a glance, it looks like you can cut most of the write volume by skipping rows whose values haven't changed. I see your support case and have looped in folks from the D1 engineering team. We'll follow up in the case with more detail.
作者提到计划中的硬性支出上限
到 𝕏 阅读作者称找到了 Cloudflare 的公告:硬性支出上限正在原型阶段,目标 2026 年第四季度提供早期版本。
Jay
@Cyberlane · 𝕏 原帖
@aladicf @AdrianNutiu Thanks, I’d missed that announcement. Found it now: they’re prototyping hard spending caps with early availability targeted for Q4 2026. Glad it’s being worked on. https://t.co/YagiOfa2QM
作者报告 Cloudflare 将退还 D1 费用
到 𝕏 阅读作者称 Cloudflare 已确认退还其 D1 费用,工程师正在协助调查写入量。
Jay
@Cyberlane · 𝕏 原帖
Cloudflare has confirmed they’ll refund my D1 charges, and their engineers are helping investigate the write volume. I appreciate everyone who stepped in. I’ll share the useful findings once we’ve checked them.
作者称 D1 计费模式不适合自己
到 𝕏 阅读作者对比托管数据库的慢查询与 D1 的直接费用,指出没有硬性支出上限,称今后宁愿避开 D1。
Jay
@Cyberlane · 𝕏 原帖
From my personal perspective, D1 sounds like a nice little solution where you have a simple SQLite type database with replication solved. So no complex feature or functionality, just a simple solution. Comparatively, you can get a managed database which can scale for a fix monthly price per replica (and disk usage of course). It has a LOT more features and can do more complex queries with better performance (if you need that). So on paper D1 should be the better choice for small little projects or apps, but here’s the reality. On a managed database, if you write bad queries (on a small app you make for yourself, not for customers so you maybe don’t optimise everything perfectly, since it’s just for you). The cost you have to pay? Potentially slow queries, which you can fix when you have the time to. On D1, same scenario… the cost is literally your wallet. You cannot set a hard spend limit, you can get notifications (which might appear when you’re sleeping, and continue to cost you money). Ultimately, the model for D1 is just a bad fit for me. I was working on another project that I wanted to make as Cloudflare native, which they might have e appreciated as well. However after this experience, it’s left a bad taste in my mouth and I’d rather avoid D1 entirely.
作者称正与 Cloudflare 核对写入量
到 𝕏 阅读作者称正与 Cloudflare 一起核对写入量,希望把查询数据与账期对齐,确认原因后再分享。
Jay
@Cyberlane · 𝕏 原帖
@BadAntenna Thanks for the pointer. I’m working with Cloudflare on the write volume and want to line up the query data with the billing period. I’ll share the confirmed explanation once we have it.
其他推荐阅读
把免费额度变成每日预算,并在 70% 和 90% 告警
风易(@Michael_liyang)说,每天 100,000 次请求和每天 500 万读取行数是硬墙,不是安全余量:把生产和测试拆到不同的 Workers 和 D1 数据库,在 70% 和 90% 告警,并在网站返回 500 之前先降级。
stevesprompt:一个智能体在 Cloudflare 控制台点击了 Upgrade,被收取 $1.5k;款项已退还。
X 用户 @stevesprompt(Steve Huang)称一个智能体在其 Cloudflare 控制台点击了 Upgrade,他被收取 $1.5k,并称该款项幸好已退还。作者随后列出了在智能体能够花钱或发送任何内容之前的预防措施。该帖未点名所升级的产品。该帖中没有 Cloudflare 的官方公开回应。
Ambersight:一个开源、只读的监控器,用于各 Worker 上的免费计划限额和账单飙升
Ambersight(jntegz/ambersight)在你自己的账户中作为一个 Worker 运行,用只读 token 每小时读取 Workers 的设置和指标,在每一项 Free 每日限额的 70% 和 90% 时警告,并在 Workers Paid 上当某个 Worker 的最近一小时达到其通常一小时的 5x 时告警,同时指出没有硬性支出上限。作者在 X 上宣布它免费且只读。