billflare.

Separate production and test resources so tests do not use up production free quota

风易 (@Michael_liyang) warns that sharing one set of free resources between production and testing lets a test run exhaust production quota, and suggests separate Workers, D1 databases, KV namespaces and domains per environment.

Products
WorkersD1KV
Source
Author experience𝕏 post
Author
风易 (@Michael_liyang)

Key points

  • Problem he describes: production and testing share one set of free resources, so a single test run can exhaust the production quota.
  • His fix: one Worker each for production and testing, a separate D1 database and KV namespace for each, and separate domains per environment so test traffic never reaches production.
  • He says the free plan has no quota isolation, so environments that are not separated share one wallet. Note that Workers Free limits such as 100,000 requests a day are account-wide per the Workers limits page read on 2026-10-28, so splitting Workers within one account separates the data stores but not the account-level request allowance.

Original sources

  1. Published

    Original post

    Read on 𝕏

    风易 (@Michael_liyang) warns that sharing one set of free resources between production and testing lets a test run exhaust production quota, and suggests separate Workers, D1 databases, KV namespaces and domains per environment.

    风易 | AI 工具链

    @Michael_liyang · Original 𝕏 post

    先说结论:生产和测试共用一套免费资源,测试一跑就把生产配额打爆。 做法:1 生产、测试各建一个 Worker;2 D1 各建一个库,KV 命名空间分开;3 域名分环境,测试流量不进生产。测试随便折腾,生产只留给真实用户。 链路:请求→按环境分流→各走各的配额。免费档没有配额隔离,环境不分就是共用一个钱包。
Community resourceWorkers +1

Workers and Durable Objects hard spend limits: early access preview

Cloudflare staff Sid and Brayden preview hard spend limits, starting with Workers and Durable Objects. Sid describes roughly ten-minute latency and an alert at 80% of the cap.

D1

hiromsaeden: an unindexed D1 query loop billed $2,129.00; a $953.74 courtesy credit left $645.38 due.

Cloudflare Community user hiromsaeden, in a post-mortem of a personal hobby project on Workers and D1, says an unindexed GROUP BY aggregate query scanned about 877,000 rows to return 30 rows, and an unintended loop triggered about 315,000 runs across two billing cycles. In the Oct 15 – Nov 15 cycle alone, 1,447,580,203,670 rows (1.44 trillion rows) were read, on top of the previous cycle’s usage. The author says the October invoice IN-83890481 was $529.88 USD, paid in full out of pocket; the November invoice IN-89082487 was $1,599.12 USD ($1,447.58 D1 Rows Read + $6.16 Workers CPU + $145.38 tax); and the total billed was $2,129.00 USD against an expected budget of about $20/month. After noticing the issue on Nov 2–3, the author deleted the Worker and the D1 database; Support confirmed all reads had stopped. In case #02408621, Support offered a $275.00 courtesy credit for October and advised holding it until the November invoice was issued on Nov 15. In case #02434399, Support applied a one-time courtesy credit of $953.74 (which included the held $275.00), leaving a final balance of $645.38 USD, and said the review was complete and no further adjustments can be made. The author, having already paid $529.88, says the remaining $645.38 cannot be afforded and the account will be downgraded on Nov 22. The author also says a budget alert fired once at the $37 mark but did not stop the charges, and that D1 currently has no hard spending cap. There is no Cloudflare staff reply on the public thread; the Support actions are reported by the author.

Author experienceWorkers +4

Cloudflare costs $5 a month, but the bill is not capped

不追高 (@Ariella1213) writes an X article explaining that Workers Paid’s $5 is a minimum, that per-product limits and budget alerts do not cap the account bill, and how denial-of-wallet requests, write amplification, delayed stops and background retries add cost.