提供案例
billflare.

Durable Object alarm 循环:靠自建分析告警和 Agent 自动下线止损

Aakash Reddy(@aak4shreddy)称一次回归让 Durable Object 因反复轮询的工具调用陷入 alarm 循环;他自建的 Cloudflare 分析发出超支 webhook,他的 Agent 随即下线了部署。他称自己没看清 Durable Objects 时长的计费方式。

适用产品
Durable ObjectsWorkers
来源
作者经验𝕏 帖子
作者
Aakash Reddy(@aak4shreddy)

要点

  • 他称自己在 Workers Paid 上测试,自设了约 5 美元的超支限额;他忽略了一个报错,把有回归的部署留在了线上。
  • 他称当时在试自定义的引导与停止/唤醒逻辑,一个 Durable Object 因反复轮询的工具调用进入 alarm 循环。
  • 他为自己全部 Cloudflare 资源自建的分析 MCP 发出了超支 webhook,他的主动式 Agent 随即停掉服务、移除了部署。
  • 他称自己本该先看 Durable Objects 定价:按他的说法,时长不像 sandbox 那样按 GB 计,而是按每百万 GB(秒)打包计费。
  • 他在更早一帖中称,预算一到就硬停与 Cloudflare 的初衷相悖,但为多数人提供开关很重要;他设了 10 美元预算预警和自定义触发器,所以收到了通知。他引用的那条帖子读取时不可见。

原始来源

  1. 发布

    Aakash Reddy(@aak4shreddy)称一次回归让 Durable Object 因反复轮询的工具调用陷入 alarm 循环;他自建的 Cloudflare 分析发出超支 webhook,他的 Agent 随即下线了部署。他称自己没看清 Durable Objects 时长的计费方式。

    Aakash Reddy

    @aak4shreddy · 𝕏 原帖

    Appreciate it Ian from Cloudflare. I should have looked at pricing structure for DOs it was not bases on GBs like sandboxes are but bundled per 1 million GBs. I should have known this and was testing stuff with like a 5$ overspend limit on top of Workers Paid. This got bundled and my dot got an overspent notification via custom cf analytics mcp built for my all my cf resources, and immediately turned down the services when a durable object was in an alarm loop, because of repeatedly polled tool call (this was before pi-durable when I was trying custom steering, and stop and wake and this happened). TLDR: DO bills per million bundled GBs, which i should have been aware of. Overlooked an error and left the regression deployment as is. Kind of saved by pro-active agents(dot) in this case, along with custom analytics that delivered the webhook and dot removed the deployment.
  2. 更早一帖:预算一到就硬停是反模式,但应提供开关;他靠自建分析、触发器和 10 美元预算预警收到了通知。

    到 𝕏 阅读

    Aakash Reddy

    @aak4shreddy · 𝕏 原帖

    Idk man hard stoppage when you reach a budget is an anti pattern to what Cloudflare was supposed to be, but I think a toggle on it so most people have their sane is much important. I was a victim of this but I had custom analytics and triggers, and a budget alert of 10$, so I got notified.
社区资源Workers +1

在 Workers Free 上自托管的 Ember 聊天:每日限额会使消息保存停止,直到 00:00 UTC

关于 Kevin Rose 的 Ember 聊天应用的两条回复指出,在 Cloudflare 免费档上额度按天计算,一旦用完,Ember 会停止保存新消息,直到 UTC 午夜;其中一条引用了 README 的估计:大约 100 人每天发送 30 条消息,在此之后才需要 $5 的 Workers Paid 计划。

其他产品

stevesprompt:一个智能体在 Cloudflare 控制台点击了 Upgrade,被收取 $1.5k;款项已退还。

X 用户 @stevesprompt(Steve Huang)称一个智能体在其 Cloudflare 控制台点击了 Upgrade,他被收取 $1.5k,并称该款项幸好已退还。作者随后列出了在智能体能够花钱或发送任何内容之前的预防措施。该帖未点名所升级的产品。该帖中没有 Cloudflare 的官方公开回应。

作者经验Workers +5

六项免费额度和四种费用:逐行估算 Cloudflare 账单

Su(@Sukiea1008)列出六项常见的 Cloudflare 免费额度,以及四种费用——单独购买的项目、在免费限额处硬停止、已启用服务上的按量用量,以及其他服务例如模型和电子邮件——并以一个 PDF 摘要器逐步讲一遍,说明为何每一行都必须按它自己的单位来估算。