Repository navigation
Releases
v0.6.3
Upgrading from v0.6.2 can use a rolling update.
Until every node runs v0.6.3, a v0.6.2 node can still acquire a cell whose ownership record was lost and start it empty.
- Outbound TLS no longer trusts emSign ECC Root CA - G3, and it rejects any certificate chain through one of the eight eMudhra intermediate CA certificates whose private keys are public.
- rustls 0.23.46 fixes GHSA-2mjx-qc3c-rqvc, where a TLS 1.3 handshake message was accepted across an encryption level boundary.
- A node refuses to acquire a cell whose ownership record (
cells/<cell>/own.json) is missing while its LTX is still in the bucket, instead of starting the cell at epoch 1 with an empty database. Requests that need the record fail, and the node logscelld ownership record lostat most once every 10 seconds per cell. The guarantees documentation describes how to restore the record.
Issues fixed:
- #293: Outbound TLS distrusts the compromised eMudhra CA certificates (webpki-roots 1.0.10, rustls-webpki 0.103.16).
v0.6.2
Upgrading from v0.6.1 can use a rolling update.
- A Durable Object
stub.fetch()that a peer forwards now rejects when the handler fails on the owner, as it does locally, and the handler does not run again. - A Worker that returns a WebSocket response to a request without
Upgrade: websocketnow fails with aTypeErrorand a 500. celld devacceptsexport NAME=valuelines and multi-line quoted values in.envfiles, and skips an entry that cannot be a binding with a warning.- Epoch GC (
CELLD_LTX_RETENTION_SECS) also runs on nodes with bucket durability. - LTX capture recovers a torn WAL header when a database opens, so capture no longer skips commits after a crash.
- A failed or abandoned eviction no longer stops compaction for the rest of a cell's activation.
Issues fixed:
- #243:
celld devreads.envand.env.localwhen there is no.dev.vars, aswrangler devdoes. - #245: A fleet with one follower recruits a second one when a peer becomes available.
- #246: Follower disk use stays bounded after a snapshot eviction or a deleted facet.
- #247:
selfis defined in Worker, Durable Object, and Worker Loader isolates. - #248:
getDurableObjectClass()accepts a plain class that extends no runtime base. - #252: WebSockets work in Durable Object facets, including outbound sockets that a facet opens.
- #255: A deploy no longer deadlocks a Durable Object handler.
- #257: A fetch to a loaded Worker honors the caller's
AbortSignal, includingAbortSignal.timeout().
v0.6.1
Upgrading from v0.6.0 can use a rolling update.
Setting CELLD_LTX_RETENTION_SECS, deploying a Python Worker, or raising CELLD_MAX_ASSET_FILE_BYTES above 25 MiB can be done only after every node runs v0.6.1.
- Add support for Python Workers.
- Bucket usage can now track a cell's data instead of growing with every activation: set
CELLD_LTX_RETENTION_SECSto delete epochs that no restore reads. It is off by default. - New
celld cell gc --dry-runlists the superseded epoch prefixes that epoch GC can delete, with their sizes, and writes nothing. - New
CELLD_MAX_ASSET_FILE_BYTES(default 25 MiB) andCELLD_MAX_DYNAMIC_WORKER_CODE_BYTES(default 64 MiB) make the per-file asset limit and the Dynamic Worker module size limit configurable. - Console log records now carry the OpenTelemetry severity (
DEBUG,INFO,WARN,ERROR) in the OTLP export and as Parquet columns. - WebSocket message handlers on one socket now start in arrival order and do not wait for the previous handler to finish. Hibernatable sockets keep send order across WebSocket handlers and RPC methods.
- A loaded Worker is now released once no stub, entrypoint, class or running facet refers to it, and a later
get()runsgetCodeagain.dispose()releases it explicitly. - Durable Object facets:
ctx.idkeeps the name of a namedDurableObjectId, andctx.exports.App({ props })passes startup properties. - The synchronous
ctx.storage.kv.list()iterator releases its read between steps, so an unfinished iterator no longer blocks later writes after a replication checkpoint.
Issues fixed:
- #233: An unfinished
kv.list()iterator no longer blocks later writes. - #236: Hibernatable sockets keep send order across handlers and
send(). - #237: Facets started through
ctx.exportskeepctx.id.name. - #240: Epoch GC deletes superseded epochs (
CELLD_LTX_RETENTION_SECS). - #241: OTLP log records carry the console method's severity.
- #242:
webSocketMessage()no longer blocks later messages on a connection.
v0.6.0
Upgrading from v0.5.1 with fleet durability requires stopping the whole fleet first. A fleet with bucket durability can use a rolling update.
- Each Durable Object facet has its own SQLite file and replication stream. A facet write no longer copies the facet database into the root or joins a root transaction. A facet can start from a class in
ctx.exports. Facets from v0.5.1 migrate on first open. crypto.subtlesupports Ed25519 (also asNODE-ED25519) and X25519, withrawimport and export. (#221)- Per-cell memory: the SQL statement cache is capped at 128 KiB of compiled statements instead of 1 MiB of SQL text, which could hold tens of MB. A cell shares one object store client instead of three, and operation timers no longer leak one map entry per operation.
- Stricter workerd parity:
WorkerCoderequirescompatibilityDate, a wasm module inmodulesmust be{ wasm: bytes },export const X = "..."in a main module fails the Worker's start, and thetransactionSync()callback receives no argument. ctx.exportsholdsdefaultand each entrypoint, andfetch()on its stubs sends an HTTP request.- R2 keeps empty key segments, so
a/b,/a/b,a//b, anda/b/are four objects. An object v0.5.1 wrote asphotos/stays atphotos. - Invalid UTF-8 in SQLite
TEXTdecodes as U+FFFD instead of failing. Headersaccepts values above U+00FF and decodes response values as UTF-8.- A WebSocket close is
wasClean: truewhenever the peer sent a close frame. run_worker_firstaccepts the root route/.- Recovery waits for range evidence from a follower's log tail.
Issues fixed:
- #226: Nest
transactionSync()calls through the root storage handle. - #227: Resolve relative imports in Dynamic Worker subdirectories.
- #228: Fire a re-armed alarm on time despite the handler's pending timers.
- #229: Deliver WebSocket frames while
webSocketMessage()runs. - #232: R2
list()returns non-ASCII and%keys asput()received them.
v0.5.1
Upgrading from v0.5.0 can use a rolling update. Stop one node, wait for its replacement to report healthy, then continue to the next node.
Highlights:
- Dynamic Workers can enforce CPU time and subrequest limits from
WorkerCode.limitsor agetEntrypoint()call. - Dynamic Workers can send Tail Workers an invocation report with the request, response, console logs, exception, and outcome.
- The new
celld r2CLI tool can put, get, list, inspect, and delete objects behind anr2_bucketsbinding without a running node. It preserves the binding's object metadata. celld deployaccepts Wranglerdefinevalues andrulesfor Text, Data, and CompiledWasm modules when it bundles a Worker.- KV accepts a
ReadableStreamvalue input(). It checks the value-size limit while reading the stream. - The node caps its LTX writer and read-lock SQLite page caches, and returns freed C allocator pages before it measures memory pressure.
- Compaction can read retained LTX bundles after their segments leave the in-memory index, so a slow cell can continue draining its history.
- The
/evict/<cell>operator route reports a refusal, cancellation, or failure instead of returning success before the eviction completes. /statereports isolate counts and V8 and allocator memory counters.- Node.js compatibility improves for mutable built-in modules and the
processfields that dependencies read during module loading.
Issues fixed:
v0.5.0
Upgrading from v0.4.1 requires stopping the whole fleet first.
Highlights:
- Support for Containers and the Cloudflare Sandbox SDK.
- Support for worker_loaders in wrangler.json. Loaded Workers can receive service bindings and use a custom outbound fetch handler.
- Service bindings now support fetch() on named entrypoints across Workers.
- RPC support for default service bindings and nested properties. AbortSignal can pass through RPC calls on the same node.
- Choose how long to keep completed Workflow runs, or delete them manually.
- Support for .dev.vars in celld dev, with automatic reloads.
- Support for WASM files in prebuilt deployments.
- Lower memory use per cell and faster KV prefix listings.
- Fixes for nested transactions, facet rollback, and unfinished SQL writes.
- More reliable alarm delivery and background work after a response.
- Database recovery fixes, with lower memory use during recovery and compaction.
- Internal host functions are no longer exposed to application code.
- Configure telemetry with CELLD_OTEL: 1 for the bucket, or an OTLP collector URL.
Issues fixed:
- #177: Pass service bindings to loaded Workers.
- #192: Isolate host state between loaded Workers.
- #193: Recover cells after their owner freezes.
- #194, #195, #196, #197: Fix Base64 and argument handling.
- #198, #199: Fix database compaction and restore failures.
- #200: Resume async work when another request wakes it.
- #201: Recognize minified imports for Node.js builtins.
- #203: Fix duplicate WebSocket Close frames.
v0.4.1
You can do a rolling upgrade from v0.4.0.
Highlights:
- Balance cell ownership across the fleet. A node that joins takes hibernated cells from the nodes that hold the most, so it carries its share within minutes instead of waiting for new traffic. The fleet evens out again after a node leaves. One node samples the leases for the whole fleet, so the cost does not grow with the square of the fleet.
- Restore a large cell page by page. The cell reads each page from the object store on first use, so it serves requests before the download completes. A large cell also hands off through its LTX chain instead of a whole-database snapshot.
- Queue throughput improves by an order of magnitude. Producer calls share transactions and durability rounds, and each message gets a time-ordered id. One Queue sustained 7,357 sends per second over a 300,000-send soak with exact delivery, up from a few hundred.
- Fewer false durability timeouts under load. The budget measures a stall: a queued write waits while the node keeps landing proofs. A follower commits a burst of frames as one fsync chain, and CRC64 verification uses SIMD.
- Alarms scale to the due work. The waker lists one bucket per armed minute and opens only the due ones. Only the elected waker probes the fleet, and the activation bound derives from store latency, so alarms of evicted cells fire on time under load.
- Recover from a whole-fleet restart. A restarting node serves follower fragments while it recovers its own predecessor, so nodes that restart together recover acknowledged writes. Recovery checkpoints its progress and holds a heartbeat, so a retry skips finished work and peers do not repeat it.
- Durable Object facets.
ctx.facetsprovidesget(),abort(), anddelete(). Each facet gets an isolated SQLite database that celld replicates with the root object. - More Node.js and web platform APIs.
node:fs,node:os,node:diagnostics_channel, a read-only/bundle, and a per-request/tmp.HTMLRewriter,EventSource,MessageChannel, theCacheAPI surface, outbound TCP throughcloudflare:sockets, and Web Crypto KDF derivation, key wrapping, and RSA signing. - A tighter output gate. An error answer, each chunk of a streaming body, a call into a loaded Worker, and the answer of a handler that fails after it commits all wait for the proof of the writes they depend on.
storage.sync()returns after the cell's writes are proven durable, and a rollback discards writes submitted withoutawait. - A lease reports why it lost authority. A self-fence names its cause, and a failed renewal retries before the authority expires.
- Operator commands page. A cell listing and a KV bulk export no longer load a namespace into memory. A lease records store outcomes and owned cell count, so
celld diagnoseshows each node's load.celld dev --cleandiscards the local state.
Issues fixed:
v0.4.0
Important upgrade note:
- A v0.3.0 fleet must stop completely before v0.4.0 is deployed. The two versions cannot share a fleet because the peer tunnel protocol and large Workers KV value references are incompatible.
Highlights:
-
Add initial support for Workers KV, Queues, Workflows, and R2 bindings. celld can deploy these bindings from the corresponding Wrangler configuration.
-
Add
celld devfor local development. It rebuilds the application automatically and uses a persistent local object store, so it does not require Docker or a cloud bucket. -
Nodes can adopt a new deployment without restarting. Existing requests finish on the old deployment, while new requests use the new deployment. Durable Objects move at safe points and retain their storage and hibernatable WebSockets.
-
Strengthen the Durable Object output gate. It now applies one ordering rule to responses, outbound calls, Queue deliveries, and WebSocket sends. Read-only output waits for earlier request or alarm writes to become durable.
-
Route proxied fetch, RPC, and WebSocket calls through one versioned peer tunnel. Request bodies stream to the owner. celld does not retry a call after transmission starts because it does not retain a copy of the body.
-
Improve graceful shutdown with batched handoffs, drain tokens, successor acknowledgements, and full snapshots that reduce successor replay. Configure the orchestrator stop grace to cover the drain-token wait, handoff, and no-progress interval.
-
Add commands to list cells and inspect or manage Workers KV namespaces and Queues: -
celld cell list-celld kv get,celld kv put,celld kv delete,celld kv list, andcelld kv info-celld kv bulk get,celld kv bulk put, andcelld kv bulk delete-celld queue info,celld queue peek,celld queue purge,celld queue pause,celld queue resume, andcelld queue redriveThe cell and KV listings support pagination, full traversal, and newline-delimited JSON. -
Move the public health endpoint from
/__celld/healthto/.well-known/celld/health. Update load-balancer and readiness checks when you upgrade. -
Add a configurable request-body limit, with a 1 GiB default, and a per-cell concurrency limit. On Linux, memory-pressure handling now also accounts for active cgroup memory.
-
Add support for Amazon EKS Pod Identity credentials from the injected environment variables and authorization-token file.
-
Issues fixed: - #148 - #161 - #163 - #165 - #166 - #167 - #168 - #170
v0.3.0
-
v0.3.0 adds a replicated write-behind log. Fleets of two or more nodes acknowledge writes after peer fsync while bucket upload finishes later. In testing, this delivers 10× lower write latency and over 100× fewer Class A S3 operations. A v0.2.1 fleet can roll forward one node at a time.
-
Added support for Azure Blob Storage (
az://<BUCKET_NAME>). -
Added support for D1 databases, including the
celld d1CLI for migrations and SQL execution. -
Added support for cron triggers, with durable fleet-wide scheduling, retries for failed handlers, and recovery of one missed run after downtime.
-
Streaming and rewrapping request bodies are up to 70× faster, and text decoding is up to 44× faster.
-
WebSocket upgrades now work correctly for Durable Object subrequests and cross-script service bindings.
-
setInterval()now works correctly. -
celld deploynow accepts Node built-in specifiers (E.G.node:util) -
Each isolate now has a configurable V8 heap limit. celld refuses new hibernatable WebSockets and oversized SQL materialization near that limit, then resumes service after memory use falls.
-
Correctness fixes prevent overlapping alarm handlers, events from resuming in freed isolates, lost transactions at replication segment boundaries, and database corruption after eviction and reactivation.
-
Closed issues: #139, #144, #147, #149, #150, #152, #154, #155, #156, #157, and #158.
v0.2.1
celld v0.2.1 repairs three faults that can take a node out of service: a node that sheds its working set and still refuses every request, an alarm that a reschedule can lose, and a WebSocket stream that a cancelled read can break. It also changes three defaults.
Memory pressure and shedding:
- celld measures pressure from the memory that cells hold, not from the resident set size. celld links jemalloc, and jemalloc keeps freed pages, so the resident set size counts memory that no cell owns. A node could shed 98% of its working set, stay above its resume line, and refuse every request for a cell until an operator restarted it.
- An absolute cap sits under that rule at 95% of the machine memory, and it reads the resident set size directly.
- A node stopped its walk down when a cut moved the sample by less than 5%. A large fixed part of the sample defeats that test, so a node stopped above a line that it could still reach. celld now asks whether a cut lowered the sample, and it keeps shedding while progress continues.
Alarms:
- A cell that moves an alarm to a new minute and back can lose the wake entry, because the delete of the old key races the new write. celld now tracks a delete while it is in flight.
- An activity report that repeats the deadline of an alarm that is already firing no longer replaces the firing state, so a handler cannot start again while it runs.
WebSockets:
- A cancelled read consumes part of a frame header, and the stream cannot realign, so a cell socket or a hibernation tunnel breaks. celld no longer cancels a WebSocket read.
Defaults:
- celld ignores the X-Forwarded-Host and X-Forwarded-Proto headers, so a client cannot set the host in request.url. Use --trust-forwarded-headers behind a proxy that replaces both headers.
- A node tests the conditional write of the bucket at startup, and it refuses to serve if the store accepts a write that it must reject. Set CELLD_STORAGE_PROBE=0 to skip the test.
- A cell scope must be non-empty, at most 512 bytes, and it must hold only ASCII alphanumerics with _ - . : and $. A scope becomes a path component and an object-store key, so celld rejects every other character.
Operator interface:
- /state reports activating, activation_waiting, and capacity_waiting beside restoring, and a census of every cell by phase. A node part-way through many cold starts reported almost no occupancy before.
- /state and celld diagnose report the memory in use beside the resident set size, which is the number that the shedding decision reads.
Workers surface:
- A SQLite-backed Durable Object can create a vec0 virtual table for a vector search. The sqlite_vec compatibility flag enables the extension, and a new example deploys a writable vector database.
Replication:
- Pruning the replication working directory no longer scales with the product of the kept and the evicted snapshots.