billflare.

Circuit breakers · Content tag

Browse content discussing circuit breakers.

29 matching items

Cases · 5

Workers AI

opsfork: a MeloTTS retry loop produced a $391.50 Workers AI charge; a waiver was requested.

Cloudflare Community user opsfork (newsfork.com) asks for a full waiver of a $391.50 Workers AI charge for the billing period October 21 – November 20, 2026. The author says normal Workers AI spend is about $1–2 per day, but an unexpected incident involving the @cf/myshell-ai/melotts model sharply increased billable usage, mainly on November 18–19. According to the author, MeloTTS was scheduled for deprecation on November 20, 2026, yet repeated model failures began around November 17, before that date; those failures triggered a queue retry mechanism, and a defect in the author’s retry implementation amplified the failures, producing about 3.3 million queued messages. The author says almost all affected inference requests were failed or redundant retries of the same few video rendering jobs and produced no usable output. The author acknowledges responsibility for the retry defect, says the loop has been stopped, and lists safeguards already added, including retry limits, exponential backoff, a circuit breaker, and removal of MeloTTS. Requested resolution includes investigating the pre-deprecation failures, excluding the abnormal usage, waiving the amount attributable to the incident or issuing an equivalent one-time account credit, and a revised invoice; the author is willing to pay legitimate normal-usage charges. A formal billing adjustment request was submitted as Billing Support Case #02445560. Community MVP sjr replied that the author needs to work through the billing ticket and that the Community cannot help with billing issues. There is no Cloudflare staff reply on the public thread.

Reported amount · USD

$391.50

Reported cause: Unbounded loopcommunity.cloudflare.com
First reported: Latest update:
Durable Objects

frankzeng2020: Durable Objects ran 1.19 million times against a 1 million monthly allowance, overpaying $0.15.

X user @frankzeng2020 (Frank Zeng) says anti-abuse code written to stop crawlers first exhausted the Cloudflare allowance: Durable Objects ran 1.19 million times against a monthly allowance of 1 million, overpaying 0.15 dollars. The author traces most of the usage to a playback-page heartbeat every 30 seconds plus online stats that called Durable Objects five times, including rejected requests that still hit Durable Objects for a block check; one open page used 430,000 calls in a month. The author also notes a usage-alert email, a D1 scan of 925 million rows in a day, and that a fix (moving the heartbeat off Durable Objects, caching denials at the edge, merging quota checks, and adding a circuit breaker) has been deployed. The $0.15 is the Durable Objects overage; a screenshot of a Workers 800,000-request threshold alert is supporting context only and is not used as the amount.

Reported amount · USD

$0.15

Reported cause: Repeated pollingx.com
First reported: Latest update:
D1

nanyuan0412: an unnoticed bug made a personal site’s database write nonstop, burning $106 in 4 days.

nanyuan0412 says an unnoticed bug in a personal website made the database write nonstop and quietly burned 106 dollars in just 4 days. The attached spend summary shows a total cost of $106.00 for usage observed October 15–26, 2026, all on the D1 Rows Written line, plus a projected cycle cost of $273.83 (a projection, not counted as the reported amount). In a reply the author says they had used the full Cloudflare stack for convenience and that, with no circuit breaker at all, it blew up.

Reported amount · USD

$106

Reported cause: Write volumex.com
First reported: Latest update:
R2

z.calloway43: Litestream R2 loop produced a $25.19 Class A overage.

Community user z.calloway43 requests a one-time courtesy waiver for unpaid invoice IN-75481816 ($25.19) after an unintended Litestream SQLite backup loop on R2 generated about 9.74 million Class A ListObjects operations from a 10-second sync interval and prefix accumulation. The author stopped Litestream, switched to daily Restic snapshots, and added a fail-closed usage guard.

Reported amount · USD

$25.19

Reported cause: Unbounded loopcommunity.cloudflare.com
First reported: Latest update:
Containers

burak emre: an agent loop on sandboxes, a $1,000 bill, and support said to pay.

burak emre (@bu7emba) says his agent got into an infinite loop using the AI binding with sandboxes, and within an hour the bill reached about a thousand dollars because new sandboxes spin up fast with no way to rate limit. He says support called it his fault, and later that they had to pay the bill.

Reported amount · USD

$1,000

Reported cause: Unbounded loopx.com
First reported: Latest update:

Guides · 23

GuideDurable ObjectsD1Workers

Anti-abuse code that burned the Durable Objects allowance: heartbeats, rejected requests and D1 scans

Frank Zeng (@frankzeng2020) says an AI-written anti-abuse module pushed Durable Objects to 1.19 million requests against the 1 million included each month, costing him an extra $0.15; a budget alert email caught it, and the audit also found a D1 query path scanning 925 million rows a day and a signing key re-imported on every request. He shares a read-only self-audit prompt.

GuideWorkersDurable ObjectsD1R2KVQueuesWorkers AI

Brolly: self-hosted cost guardrails and emergency controls for Cloudflare

Brolly (standardagents/brolly, MIT) is a self-hosted Cloudflare app that watches billable usage across Workers, Durable Objects, D1, R2, KV, Queues and AI, alerts when spend moves out of line, and offers approval-first, reversible quarantine controls; automatic controls are opt-in and it never deletes resources.

GuideWorkersKVD1R2Queues

cf-usage-guard

An open-source library that reads account usage from the Cloudflare GraphQL API and circuit-breaks individual Worker bindings before overages.

GuideDurable ObjectsWorkers

cloudflare-cost-guard

Louis Cai’s open-source rules and TypeScript base class for keeping Durable Object alarms and Worker schedulers from runaway loops.

GuideDurable ObjectsAgents SDK

How to keep a Durable Objects dead loop from bankrupting you

karamage explains Durable Objects billing as an hourly hotel, recounts how his own alarm loop pushed the projected usage charge of a personal service from a few yen to nearly ¥8,000 (his figure), and lists four coding rules and two monitoring habits to catch a runaway loop early.

GuideWorkersDurable ObjectsD1R2KVQueues

CF Usage

An open-source Go server plus Android app that polls Cloudflare GraphQL Analytics every minute, tracks Workers Paid allowances, projects the cycle, alerts, and offers confirmed kill switches.

Skills · 1

Skill

Cloudflare billing risk audit skill

Ask your coding agent to check a Cloudflare project for loops, retries and repeated work that could drive up costs, with code locations and suggested improvements.

daftai-cloudflare-billing-audit