---
title: "workerd Self-Hosted Durable Objects Clustering Benchmark Index"
slug: "workerd-self-hosted-durable-objects-clustering-benchmark"
description: "Quantitative benchmark of workerd self-hosted Workers and Durable Objects clustering vs Cloudflare Workers platform limits, with wrangler configs, egress math"
author: "Hamdi Soudani"
category: "cloud-gpu-infra"
archetype: "benchmark-index"
published_at: "2026-12-04T00:04:54.898+00:00"
updated_at: "2026-12-04T00:04:56.779906+00:00"
canonical_url: "https://pyvren.com/blog/workerd-self-hosted-durable-objects-clustering-benchmark"
reading_time_minutes: 4
word_count: 770
quality_score: 91
tags: ["workerd","durable-objects","self-hosted","cloudflare-workers","edge-compute"]
keywords: ["workerd self-hosted durable objects clustering","workerd bucket backed clustering r2 s3 gcs","cloudflare workers self hosted pricing vs workerd","workerd durable objects leader election conditional writes","workerd docker kubernetes deployment config"]
sources: ["https://developers.cloudflare.com/changelog/post/2026-12-03-workerd-self-hosted-durable-objects/","https://github.com/cloudflare/workerd/actions/runs/26347930581","https://github.com/cloudflare/workers-sdk/issues/9193","https://developers.cloudflare.com/workers/platform/pricing/","https://aws.amazon.com/s3/pricing/"]
---

# workerd Self-Hosted Durable Objects Clustering Benchmark Index

> **TL;DR:** 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 Facts

- **workerd clustering announcement date:** December 3, 2026 ([source](https://developers.cloudflare.com/changelog/post/2026-12-03-workerd-self-hosted-durable-objects/))
- **workerd Docker image:** docker.io/cloudflare/workerd:latest for linux/amd64 and linux/arm64 ([source](https://developers.cloudflare.com/changelog/post/2026-12-03-workerd-self-hosted-durable-objects/))
- **Durable Object leader election:** Conditional writes on object storage bucket, no consensus service ([source](https://developers.cloudflare.com/changelog/post/2026-12-03-workerd-self-hosted-durable-objects/))
- **Supported object storage backends:** Cloudflare R2, Amazon S3, Google Cloud Storage ([source](https://developers.cloudflare.com/changelog/post/2026-12-03-workerd-self-hosted-durable-objects/))
- **workerd orphan process issue:** cloudflare/workers-sdk#9193, Wrangler v4.14.0, closed awaiting response ([source](https://github.com/cloudflare/workers-sdk/issues/9193))
- **Cloudflare Workers CPU pricing:** $0.02 per million GB-s (not $0.025) ([source](https://developers.cloudflare.com/workers/platform/pricing/))

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](https://developers.cloudflare.com/changelog/post/2026-12-03-workerd-self-hosted-durable-objects/). Cloudflare Workers pricing lists $0.30 per million requests and $0.02 per million GB-s CPU [Cloudflare Workers pricing](https://developers.cloudflare.com/workers/platform/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](https://aws.amazon.com/s3/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](https://github.com/cloudflare/workers-sdk/issues/9193). 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

```jsonc
{
  "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:

```bash
workerd serve --experimental .
```

For Docker or Kubernetes:

```dockerfile
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

1. Verify your bucket supports conditional writes. R2, S3, and GCS qualify; object storage without conditional writes cannot elect leaders safely.
2. 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.
3. Size instances for peak concurrent Durable Object leaders, not average request volume. Each leader holds SQLite state in memory; under-provisioning causes eviction storms.
4. Monitor bucket GET/PUT operations separately from compute. A write-heavy agent workload can exceed Cloudflare Workers request pricing before compute savings materialize.
5. 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](https://developers.cloudflare.com/changelog/post/2026-12-03-workerd-self-hosted-durable-objects/og.png?v=c2c9744722727b6b)

[Self-host Workers and Durable Objects with workerd clustering (experimental) · Changelog](https://developers.cloudflare.com/changelog/post/2026-12-03-workerd-self-hosted-durable-objects/)

[Make self-hosted Durable Objects scalable across a cluster · cloudflare/workerd](https://github.com/cloudflare/workerd/actions/runs/26347930581)

[workerd orphan processes · Issue #9193 · cloudflare/workers-sdk](https://github.com/cloudflare/workers-sdk/issues/9193)

[Cloudflare Workers pricing](https://developers.cloudflare.com/workers/platform/pricing/)

[AWS S3 data transfer pricing](https://aws.amazon.com/s3/pricing/)

## Frequently Asked Questions

### Does workerd clustering require a consensus service like etcd or Raft?

No. workerd uses conditional writes on the shared object storage bucket to elect one leader per Durable Object, with no separate consensus service.

### Which object storage backends are supported for bucket-backed clustering?

Cloudflare R2, Amazon S3, and Google Cloud Storage, provided they support conditional writes.

### Can workerd run D1, R2, Workflows, and Cron Triggers in a cluster?

Yes, but these services are experimental and require the --experimental flag; KV and Queues still need a Cap'n Proto config.capnp file.

### What is the break-even threshold for self-hosted workerd vs Cloudflare Workers?

Bare metal or reserved instances beat serverless when you sustain high request volume with predictable state access patterns; run a two-week shadow test measuring per-request cost on both platforms before cutting over.

## Primary Sources

- https://developers.cloudflare.com/changelog/post/2026-12-03-workerd-self-hosted-durable-objects/
- https://github.com/cloudflare/workerd/actions/runs/26347930581
- https://github.com/cloudflare/workers-sdk/issues/9193
- https://developers.cloudflare.com/workers/platform/pricing/
- https://aws.amazon.com/s3/pricing/
