The Short Answer
You can now run Cloudflare Workers and Durable Objects as a cluster on your own machines — but Cloudflare is explicit that this first release is experimental, not a production recommendation. In a changelog entry dated December 3, 2026, Cloudflare announced workerd clustering: several instances of workerd, the open-source runtime behind Cloudflare Workers, can form one multi-machine cluster that shares a single object-storage bucket. Until now workerd ran as a single instance with data on a local disk, which made it a local-development tool rather than something you could scale across a fleet of VPS or bare-metal servers. Now each Durable Object’s SQLite database is persisted in the bucket, ownership is coordinated through conditional writes, and any instance can accept a request and forward it to the current owner. When an instance stops or fails, another takes over its objects without losing acknowledged writes.
The practical details matter as much as the headline. Clustering sits behind an --experimental flag, every instance needs the same bucket and the same cluster key of at least 32 bytes, and Cloudflare states plainly that a cluster is meant to run a single application whose code you trust — workerd is not a hardened sandbox. Workers, Durable Objects, and Durable Object Facets are marked Supported; D1, R2 bindings, Workflows, Cron Triggers, Static Assets, and the Cache API are Experimental, and KV and Queues still need a Cap’n Proto configuration in a cluster. Strategically, this is the first official path to running the Workers programming model — stateful, SQLite-backed Durable Objects included — on infrastructure you operate, inside a VPC, a Kubernetes cluster, or a homelab, instead of only on Cloudflare’s network. It follows the October move of Ryan Dahl and the Deno team to Cloudflare, which we covered in Deno Joins Cloudflare and Deno Deploy Shuts Down in April 2027: the clustering ideas from Dahl’s celld runtime have now been merged into workerd itself. Below: what Cloudflare shipped, how the bucket-backed design works, what an independent three-node test measured, and the limits that should keep this out of production for now.
What Cloudflare Actually Announced on December 3
The announcement is a Cloudflare changelog entry, “Self-host Workers and Durable Objects with workerd clustering (experimental),” dated December 3, 2026. Every product fact in this section comes from that entry, checked on December 5, 2026.
Three changes arrived together:
- Multi-machine clustering. Several workerd instances form one cluster sharing an object-storage bucket that supports conditional writes — Cloudflare R2, Amazon S3, or Google Cloud Storage are the named examples.
- Direct Wrangler configuration support. workerd now reads
wrangler.jsonandwrangler.jsoncdirectly, so an existing Workers project using only supported configuration keys runs on your own machines unchanged withnpx workerd serve . - An official Docker image. Every workerd release publishes
docker.io/cloudflare/workerdforlinux/amd64andlinux/arm64— the practical way to run this on a VPS or in Kubernetes.
Cloudflare names four use cases: running inside your own VPC, Kubernetes cluster, or on-premises hardware (including data-residency limits); stateful AI agents, each with a Durable Object holding SQLite memory and alarms; real-time applications such as chat rooms or collaborative documents, each with its own SQLite database and no shared database or broker; and coordination primitives — locks, counters, and job schedulers as single Durable Objects every instance routes to.
The status table in the announcement is worth reading literally. Workers, Durable Objects, and Durable Object Facets are Supported with cluster support. D1, R2, Workflows, Cron Triggers, Static Assets, and Cache API are Experimental with cluster support; Rate Limits are Experimental and per-instance. KV and Queues are Experimental and, in a cluster, still need a Cap’n Proto config.capnp. The closing lines set expectations: “We’re just getting started with workerd clustering; the purpose of this experimental release is to gather feedback,” with issues directed to the cloudflare/workerd GitHub repository.
How Bucket-Backed Clustering Works (and Why There Is No etcd)
The design is the interesting part, because it removes the component that usually makes self-hosted clusters painful: the consensus service. There is no Raft daemon, no etcd, and no separate database server. Instead, the object-storage bucket is the coordination point.
Each Durable Object has its own SQLite database. In cluster mode, workerd persists that database in the shared bucket and coordinates ownership through conditional writes — the If-None-Match / If-Match style of write that succeeds only if the object is in the expected state. One instance owns a given object at a time; any other instance that receives a request for that object forwards it to the owner. To add capacity, you start another instance against the same bucket. When an instance stops or fails, another instance takes over its objects, restoring their SQLite databases from the bucket, “without losing acknowledged writes” in Cloudflare’s words.
Two consequences follow. First, durability is bucket-shaped: an acknowledged write is one that has landed in the bucket, so every durable write pays a bucket round-trip, while warm reads stay in the owner’s local SQLite and memory. Second, the bucket must genuinely honor conditional writes. workerd runs a built-in storage probe before serving in cluster mode — create a probe object, try a duplicate create, overwrite it, try a stale overwrite — and refuses to start if your S3-compatible server does not respect conditional headers. That is the right failure mode, but it means not every S3 clone qualifies; R2, S3, and GCS are the safe choices Cloudflare names.
Getting started, per the announcement, is three settings per instance: WORKERD_CLUSTER_BUCKET (for example s3://BUCKET/PREFIX), WORKERD_CLUSTER_KEY (the same key, at least 32 bytes, on every instance), and each machine’s own --cluster-addr, with AWS_ENDPOINT_URL, AWS_ACCESS_KEY_ID, and AWS_SECRET_ACCESS_KEY set for R2 or S3. On fresh VPS nodes, our how to install Docker on a VPS guide covers the base layer the official image expects.
What an Independent Three-Node Test Measured
Cloudflare published no benchmarks, so the only numbers available today come from an independent hands-on test published December 4, 2026 by Flavio Copes, who ran workerd v1.20261202.1 as a three-node Docker cluster against a local S3-compatible container and deliberately killed leaders. Treat these as one engineer’s laptop measurements, not Cloudflare figures — but the failure behavior matched the documentation.
Failover worked both ways. On a graceful docker stop (SIGTERM), the leader flipped /ready to 503, finished in-flight requests, uploaded pending commits, released its objects, and exited in 5.29 seconds; the next request to a peer claimed leadership and answered in 63.8 ms with no lost count. On a hard kill (SIGKILL), requests for the orphaned object failed for the dead node’s 20-second lease, then a peer took over at +20.73 seconds in about 60 ms, with all five writes intact. Graceful shutdown is nearly seamless; a crash costs up to one lease period of failed requests for the affected objects.
Reads are cheap; durable writes pay the bucket. Across 50 sequential requests per path, median single-node reads were 0.30 ms and writes 0.43 ms on local disk. In the cluster, reads to the leader were 0.52 ms median (0.62 ms via a peer), while writes jumped to 5.51 ms to the leader and 6.64 ms via a peer — against a local bucket on the same host. Against a real R2 or S3 bucket over a network, expect every acknowledged write to pay that round-trip on top. For chat rooms, counters, agent memory, and coordination objects — the workloads Cloudflare names — that trade is usually fine. For write-heavy transactional work, it is the number to benchmark first.
The Limits That Keep This Out of Production (For Now)
The announcement and the hands-on test agree on the caveats, and they are substantial:
- Experimental means experimental. Clustering and most built-in services require
--experimental, and there is no point-in-time recovery (PITR) for Durable Objects in this first release yet. - One trusted application per cluster. Cloudflare: “A cluster is meant to run a single application whose code you trust. workerd is not a hardened sandbox.” Do not run untrusted tenant code in it without VM isolation.
- KV and Queues lag behind. In a cluster they still need
config.capnp; awrangler.jsoncdeclaringkv_namespacesorqueueswill refuse to start with--cluster-addr, per the hands-on test. - A long not-supported list. Workers AI, Vectorize, Hyperdrive, Browser Rendering, Images, Stream, Email Workers, Containers, and Pipelines are not in workerd. If your app leans on those, managed Cloudflare remains its only home.
- Peer traffic is plain TCP. Cluster communication on port 7000 is unencrypted, so nodes belong on a private network — a VPC, WireGuard, or Tailscale — never the public internet.
- No automatic rebalancing, and WebSockets drop on failover. An object stays on the first node that activates it until that node stops, and open WebSockets close when leadership moves; clients must reconnect.
- Clocks must agree. Every node checks its system time against the bucket and exits if drift exceeds 2 seconds. NTP on every machine is not optional.
| Managed Cloudflare Workers | Self-hosted workerd cluster (Dec 2026) | |
|---|---|---|
| Status | Production platform | Experimental first release (--experimental) |
| Where it runs | Cloudflare’s global network | Your VPS, Kubernetes, or on-prem hardware |
| Durable Objects | Yes, platform-managed storage | Yes, SQLite per object persisted in your R2/S3/GCS bucket |
| Coordination | Platform-internal | Conditional writes to the bucket; no etcd/Raft service |
| Supported services | Full Workers platform | Workers, Durable Objects, Facets supported; D1, R2, Workflows, Cron, Static Assets, Cache API experimental; KV/Queues via config.capnp |
| Not available | — | Workers AI, Vectorize, Hyperdrive, Browser Rendering, Images, Stream, Email Workers, Containers, Pipelines; no PITR yet |
| Multi-tenancy | Isolated per account | Single trusted application per cluster; not a hardened sandbox |
| You operate | Code and configuration | Nodes, bucket, private network, NTP, upgrades, backups |
Why This Matters for Server Owners Anyway
If the caveats are that long, why should a VPS owner care this week? Three reasons.
First, it is an exit ramp, and exit ramps change negotiations. Durable Objects are one of the stickiest parts of the Workers platform — stateful, SQLite-backed, single-threaded actors are not trivial to reimplement elsewhere. Having real bucket-backed clustering inside the official open-source runtime means an application built on Durable Objects is no longer locked to a single host if you self-host, and no longer locked to one vendor’s network if you do not.
Second, it fits infrastructure people already run. A small fleet of VPS nodes with Docker, a private WireGuard network between them, and one object-storage bucket is exactly the setup in our best VPS for self-hosting roundup. workerd clustering asks for nothing exotic on top of that: the same bucket pattern, the same container tooling, plus NTP discipline. The celld lineage matters too — the clustering design was proven as a separate runtime before Cloudflare merged it into workerd, and celld.dev now redirects to workerd.dev.
Third, the cost model flips. On managed Workers you pay per request and per unit of CPU on someone else’s fleet. Self-hosted, you pay for the nodes and the bucket you already operate, and idle capacity is yours to fill with other work. That is not automatically cheaper — you also inherit patching, monitoring, and failover behavior — but for steady, stateful workloads inside a private network, owning the runtime is now a real option instead of a research project.
How to Test It Safely This Month
If you want to evaluate workerd clustering without betting production traffic on an experimental flag, the sensible sequence is:
- Start with one instance. Run
npx workerd serve .on an existing Workers project and confirm yourwrangler.jsonkeys are in the supported set. - Add a bucket that passes the probe. Use R2, S3, or GCS — or verify your S3-compatible store honors conditional writes, because workerd will refuse to start if it does not.
- Cluster two or three cheap nodes on a private network. Same bucket, same 32-byte cluster key (
openssl rand -hex 32), distinct--cluster-addrper machine, port 7000 reachable only over your VPC or WireGuard/Tailscale network, NTP everywhere. - Test failover on purpose. Stop a leader gracefully and kill one hard; measure the lease-bound outage window and confirm acknowledged writes survive.
- Benchmark your own write path. The published test showed cluster writes at roughly 5.5–6.6 ms median against a local bucket; your number against a real bucket decides fit.
- Keep production on managed Cloudflare until clustering leaves experimental status — and watch the
cloudflare/workerdrepository, where Cloudflare is collecting issues for this release.
FAQ
Is workerd clustering production-ready?
No. Cloudflare labels the December 3, 2026 release experimental, gates it behind --experimental, and describes its purpose as gathering feedback. Workers, Durable Objects, and Facets are Supported; the cluster mode itself and most built-in services are not yet production recommendations.
What do I need to run a workerd cluster?
Two or more machines running the workerd binary or the official docker.io/cloudflare/workerd image, one bucket that supports conditional writes (R2, S3, or GCS), the same cluster key of at least 32 bytes on every instance, a private network between nodes, and synchronized clocks via NTP.
How does failover work without a consensus service?
Each Durable Object’s SQLite database lives in the shared bucket, and ownership is coordinated through conditional writes. Any instance can receive a request and forwards it to the current owner. A graceful stop hands over almost immediately; a crash waits out the dead node’s lease (20 seconds in the independent test) before takeover, with acknowledged writes preserved.
Can I run my existing Workers project unchanged?
Often, yes: workerd now reads wrangler.json and wrangler.jsonc directly for supported configuration keys. The exceptions are real — KV and Queues in a cluster still need config.capnp, and Workers AI, Vectorize, Hyperdrive, Browser Rendering, Images, Stream, Email Workers, Containers, and Pipelines are not supported in workerd at all.
Is it safe to run untrusted code in a workerd cluster?
No. Cloudflare states a cluster is meant to run a single application whose code you trust and that workerd is not a hardened sandbox. Treat it as your own application’s runtime, not a multi-tenant platform.
What does self-hosting cost compared with managed Workers?
There is no self-hosted price list: you pay for your own compute and object storage instead of per-request edge pricing. Whether that is cheaper depends on request volume, write rate (every acknowledged write pays a bucket round-trip), and your operational time — benchmark your workload before assuming savings.
The Bottom Line
Cloudflare’s December 3, 2026 workerd clustering release is the moment self-hosting Workers stopped being a single-machine curiosity. Multiple workerd instances now share one R2, S3, or GCS bucket, coordinate Durable Object ownership through conditional writes with no consensus service to operate, read your existing wrangler.json, and ship as an official Docker image for the VPS and Kubernetes fleets server owners already run. The independent evidence is encouraging — graceful failover in about 60 ms, crash takeover after a 20-second lease with no acknowledged writes lost, reads barely slower than local disk — and the limits are equally clear: experimental status, no PITR yet, KV and Queues still on Cap’n Proto in clusters, plain-TCP peer traffic that demands a private network, and a single-trusted-application security model. Test it on two or three nodes this month, benchmark your write path against a real bucket, and keep production where it is until the flag comes off. The strategic point stands regardless: Durable Objects now have an official home on your own servers.
Sources: Cloudflare, “Self-host Workers and Durable Objects with workerd clustering (experimental),” Cloudflare Changelog, December 3, 2026 (original entry developers.cloudflare.com/changelog/post/2026-12-01-workerd-self-hosted-durable-objects/), checked December 5, 2026 — clustering design, supported/experimental service table, --experimental flag, cluster key and bucket setup, single-trusted-application caveat. Flavio Copes, “Self-hosting Durable Objects with workerd,” December 4, 2026 (flaviocopes.com/self-host-durable-objects/) — celld merge history, three-node Docker test, failover timings (5.29 s graceful stop, 63.8 ms takeover, 20-second lease, +20.73 s crash takeover), latency medians, and limitations list. Featured image: 3D network structure with a central stack connected to surrounding nodes via Pexels (Pexels License, photo 39612972).



Leave a Reply