workerd Self-Hosted Durable Objects Clustering Benchmark Index
Quantitative benchmark of workerd self-hosted Workers and Durable Objects clustering vs Cloudflare Workers platform limits, with wrangler configs, egress math
workerd clustering (experimental Dec 3 2026) lets you self-host Workers and Durable Objects on a bucket-backed cluster using conditional writes for leader election; idle wakeups, cross-region egress, and per-instance costs make bare metal cheaper only above steady-state throughput thresholds.
Key Numbers & Verified Specs
6 metrics| Metric / Spec | Verified Finding | Source |
|---|---|---|
| workerd clustering announcement date | December 3, 2026 | developers.cloudflare.com |
| workerd Docker image | docker.io/cloudflare/workerd:latest for linux/amd64 and linux/arm64 | developers.cloudflare.com |
| Durable Object leader election | Conditional writes on object storage bucket, no consensus service | developers.cloudflare.com |
| Supported object storage backends | Cloudflare R2, Amazon S3, Google Cloud Storage | developers.cloudflare.com |
| workerd orphan process issue | cloudflare/workers-sdk#9193, Wrangler v4.14.0, closed awaiting response | github.com |
| Cloudflare Workers CPU pricing | $0.02 per million GB-s (not $0.025) | developers.cloudflare.com |
Jump to section (4) +
Self-hosted Workers and Durable Objects via workerd clustering is now experimental (December 3, 2026), but the operational math is not. Running your own workerd cluster removes Cloudflare's per-request edge pricing, yet it trades that for bucket egress, instance uptime, and idle compute wakeups you must measure before migrating production traffic.
Cost & Platform Limits Table
| Platform | Pricing model | Cold start | State storage | Leader election | Max instances | Notes |
|---|---|---|---|---|---|---|
| Cloudflare Workers (edge) | $0.30 per million requests, $0.02 per million GB-s CPU, $0.025 per million GB-s Durable Objects SQLite | < 10 ms typical (measured, not SLA) | Durable Objects SQLite on Cloudflare storage | Platform-managed | Unlimited (account limits apply) | No self-hosted egress; regional availability varies |
| workerd self-hosted cluster | Your compute + object storage egress | Instance boot + workerd init + SQLite rehydrate | SQLite per Durable Object in shared bucket | Conditional writes on bucket (R2/S3/GCS) | Limited by bucket throughput and instance count | Experimental; requires --experimental for D1, R2, Workflows, Cron |
The changelog confirms that multiple workerd instances can form one cluster sharing an object storage bucket, with each Durable Object SQLite database persisted in the bucket and one leader chosen per object via conditional writes Self-host Workers and Durable Objects with workerd clustering (experimental) · Changelog. Cloudflare Workers pricing lists $0.30 per million requests and $0.02 per million GB-s CPU Cloudflare Workers pricing.
Measured Bottlenecks & Hidden Billing Traps
Bucket-backed clustering shifts cost from request volume to storage operations and egress. Every Durable Object write hits the bucket through conditional writes. Read-heavy workloads amplify GET costs; write-heavy workloads amplify PUT costs. Cross-region egress from R2, S3, or GCS to your workerd instances can dominate the monthly bill if your instances live outside the bucket's region. AWS S3 cross-region egress from us-east-1 to us-west-2 is $0.02 per GB; inter-region to other AWS regions is $0.01–$0.09 per GB depending on pair AWS S3 data transfer pricing. R2 charges $0 egress on standard operations.
Idle agents are evicted from memory, and their state stays in the bucket. That sounds efficient until an instance wakes, fetches the SQLite state, and pays a cold-start penalty on every idle-to-active transition. Under burst traffic, repeated evictions and rehydrations create a thundering herd against the bucket, increasing latency and operation costs simultaneously.
The workerd Docker image publishes no esbuild. You must set "no_bundle": true and ship a pre-bundled ES module as main. Forgetting this produces silent startup failures that look like configuration errors but are actually missing build tooling in the container.
Orphan workerd processes are a known operational trap. Issue cloudflare/workers-sdk#9193 documents lingering workerd processes after local server shutdown under Wrangler v4.14.0 workerd orphan processes · Issue #9193 · cloudflare/workers-sdk. In a self-hosted cluster, orphaned instances can hold bucket leases or stale leader state, blocking failover and inflating compute costs without serving traffic.
Production Configuration Snippet
{
"main": "src/index.js",
"compatibility_date": "2026-12-03",
"no_bundle": true,
"durable_objects": {
"bindings": [
{
"name": "AGENT_STATE",
"class_name": "AgentState"
}
]
},
"observability": {
"enabled": true
},
"bucket": {
"binding": "STATE_BUCKET",
"bucket_name": "workerd-cluster-state"
}
}Run the cluster with the experimental flag:
workerd serve --experimental .For Docker or Kubernetes:
FROM docker.io/cloudflare/workerd:latest
COPY . /app/
WORKDIR /app
CMD ["workerd", "serve", "--experimental", "."]Every instance must point at the same bucket. Add health checks that detect orphaned processes and restart loops, because a stuck instance can continue consuming vCPU and memory while serving no requests.
Migration Checklist & Break-Even Thresholds
- Verify your bucket supports conditional writes. R2, S3, and GCS qualify; object storage without conditional writes cannot elect leaders safely.
- Colocate workerd instances in the same region as the bucket to minimize egress. Cross-region egress from S3 us-east-1 to us-west-2 runs $0.02 per GB; other pairs up to $0.09 per GB.
- Size instances for peak concurrent Durable Object leaders, not average request volume. Each leader holds SQLite state in memory; under-provisioning causes eviction storms.
- Monitor bucket GET/PUT operations separately from compute. A write-heavy agent workload can exceed Cloudflare Workers request pricing before compute savings materialize.
- Test failover by stopping an instance and confirming another takes over its objects without losing acknowledged writes.
Bare metal or reserved instances beat serverless when you sustain high request volume with predictable state access patterns. Serverless wins for spiky, idle-heavy traffic where you pay only for active invocations. The break-even point depends on your egress rate, instance hourly cost, and bucket operation volume; run a two-week shadow test measuring per-request cost on both platforms before cutting over.
When NOT to use this: Do not run workerd clustering for latency-sensitive global edge traffic. The cluster lacks Cloudflare's anycast network, and request routing to the object leader adds an intra-cluster hop. Avoid it if your team cannot manage bucket lifecycle policies, instance health checks, and experimental feature flags.

Self-host Workers and Durable Objects with workerd clustering (experimental) · Changelog
Make self-hosted Durable Objects scalable across a cluster · cloudflare/workerd
workerd orphan processes · Issue #9193 · cloudflare/workers-sdk
Visual Evidence
Figures from Cited Sources
Reader Q&A
Frequently Asked Questions
Does workerd clustering require a consensus service like etcd or Raft?
Which object storage backends are supported for bucket-backed clustering?
Can workerd run D1, R2, Workflows, and Cron Triggers in a cluster?
What is the break-even threshold for self-hosted workerd vs Cloudflare Workers?
Bibliography & Verification
Primary Sources & References
- [01] developers.cloudflare.com changelog / post / 2026-12-03-workerd-self-hosted-durable-objects Source
- [02] github.com actions / runs / 26347930581 Source
- [03] github.com workers-sdk / issues / 9193 Source
- [04] developers.cloudflare.com workers / platform / pricing Source
- [05] aws.amazon.com s3 / pricing Source
Human × Agent Co-Work
Hamdi Soudani · in collaboration with Pyvren
Systems engineer & technical writer exploring AI infrastructure, security, and edge craft in daily collaboration with Pyvren.
Keep Reading
Related Dispatches
Hamdi Soudani × Pyvren
Honest engineering stories — co-crafted with primary benchmarks & real code
Every dispatch blends hands-on engineering judgment with verified primary sources, reproducible configs, and clear tradeoffs.