Spillway Capabilities and Limitations
Experimental Alpha
Spillway is an experimental alpha. Its configuration, behavior and storage formats may change in future releases.
This page lists in one place what Spillway does, what it does not do yet and what it will not do, with the limits an operator plans around. It is a summary: each row links to the page that explains it. The design overview, deltafi-spillway/docs/design-overview.md in the repository, explains how Spillway works.
Features in This Release
This release runs one Spillway instance on Docker Compose, in DeltaFi's own stack or in a standalone stack (see Deployment).
| Area | What Spillway does |
|---|---|
| Deployment | One instance, in either of two modes: inside DeltaFi's Compose stack (deltafi.spillway.enabled), or standalone with its own s3proxy, VictoriaMetrics and Grafana, including an airgap bundle. Any number of channels. |
| Inbound formats | HttpEgress, DeltaFiEgress and FlowfileEgress (FlowFile v1 and v3, one FlowFile per request), each discovered from the request itself. POST and PUT only, over HTTP/1.1 (see Supported Egress Formats). |
| Inbound security | internal mode, plain HTTP on DeltaFi's network, and mtls mode, where a client certificate SAN maps to a source name and each channel lists the sources it accepts. |
| Pass-through | A file whose consumer answers within passThrough.maxTime goes straight through with no committed disk write and no S3 call. Files up to memoryBytes pass through a memory buffer, so a consumer failure still ends in a local commit and a 200. Larger files stream. In auto mode Spillway predicts the consumer's time from its latency and bandwidth. A large file whose pass-through failed spills on its resend. |
| Local tier | Files committed to the local volume with a 1 ms group commit, kept in one-minute buckets, with retry and a dead-letter queue (DLQ). Startup loads buckets lazily, and a volume lock keeps a second Spillway off the volume. Bounded mode (storage.local.maxBytes) limits Spillway's own bytes on a shared filesystem. |
| Fair share | Channels on one volume share it equally with nothing to set (see Channels Sharing a Volume). |
| S3 tier | Demotion packs the oldest data into segments in S3, and promotion brings it back ahead of delivery, in parallel. Works on Spillway's own s3proxy or on AWS S3. Includes a startup store probe, a sweeper for orphaned objects, S3 age-off per segment and control objects for pause, resume and connection caps. |
| Delivery | Oldest-first delivery with adaptive concurrency, a circuit breaker, failure classes, retry with backoff and a DLQ. Live arrivals can bypass a young backlog, and reserved slots keep room for them. |
| Audit | An audit journal shipped to S3, with a terminal row for every accepted file, and age-off on both tiers guarded against clock skew. |
| Monitoring | Metrics pushed to VictoriaMetrics, projections for catch-up and capacity exhaustion, a Grafana dashboard and alert rules (see Monitoring). |
| Admin API | The single-instance subset: channel status, pause, resume, connection cap, force-demote, DLQ replay and purge, DID lookup and volume reset (see Admin API). |
| Reloads | Configuration reloads live where a setting allows it. Outbound credentials reload from their files within about 20 seconds, with no restart (see Configuration). |
| DeltaFi integration | spillway resume-policies renders the DeltaFi auto-resume policies each Spillway-backed sink needs (see Resume Policies). |
| Test tooling | spillway-sim, a staging simulator with a consumer, a load generator and a reconciliation ledger. |
Planned for V1
V1
These items are part of V1 and are not in this release. Where a setting for one exists, this release refuses a value other than its default.
| Item | In this release |
|---|---|
| DID header from DeltaFi's egress actions, read before discovery | Spillway discovers each file's DID from the request's body or metadata header. |
| Kubernetes StatefulSet in the DeltaFi chart, with durability profiles and graceful shutdown for Kubernetes | Docker Compose only. |
Several instances sharing one bucket, with heartbeats, adoption of a lost instance's S3 backlog (instance.adoptAfter, /admin/instances, spillway adopt-local) and inbound connection recycling across instances | One instance. Its S3 backlog waits for it to return. |
Duplicate identity detection (duplicate_identity, unadopted_s3_backlog_bytes) | Two instances with one instance.id and instance.cluster are not detected. |
| Hot reload of inbound and admin certificates | A certificate change needs a restart. |
| Encrypted outbound client key (passphrase) | An encrypted key is refused. |
A memory limit and GOMEMLIMIT for the Spillway container, sized from a measured RSS | Neither the Compose service nor the process sets a memory limit; memory grows with the channels and the workload. |
| Full gauge set, SOPs exercised in a game day, upgrade and version rules | The shipped gauges and alerts. The SOPs are written, and exercising them in a game day is V1 work. |
| Sizing above one instance | A site above the single-instance target needs a sizing run of its own (see Single-Instance Target). |
| A bundled and an external object-store profile | Spillway's own s3proxy, or AWS S3. |
Deferred and Future
Two groups of work have no date. Deferred work waits for a measurement. Future work starts when its trigger appears.
| Deferred item | Waits for |
|---|---|
Simpler stream control for promotion, where streams = min(pool − 1, credit ÷ segmentTargetBytes) | The Gate 1 G3 run. Tier and promotion rules are frozen until the G2 and G3 runs report. |
| Promotion freeing more room than a channel under its share needs, and a channel holding no bytes counting as a holder | The same work package. |
| Future item | Trigger |
|---|---|
Sizing recommender, a plan command and what-if analysis from VictoriaMetrics history | Observed data from two or three sites |
| DeltaFi TUI, UI and Central integration | Operators running more than a few buffers |
| Relay between buffers (hop headers, loop limit) | A consumer reachable only from another region. Chaining to another buffer's URL already works, with retention restarting at each hop. |
| Bulk cross-region transfer | An evacuation larger than relay can move in a window |
| Continuous production ledger on a sample of DIDs | A site that requires ongoing reconciliation |
| Total connection cap across instances | A consumer whose limit is below instances × a useful per-instance cap |
| Replicated local tier | A site that needs host-loss durability without network volumes |
| Non-blocking DeltaFi egress action | DeltaFi egress threads become the limit despite tuning |
| Automatic sink configuration from DeltaFi | Many sinks routed through buffers |
| Distroless image, image signing, FIPS build | A site that requires them |
| DeltaFi events for age-off and DLQ | Operators who need them beyond alerts |
| Fewer local-tier disk operations per file (local segments exploration) | The Gate 1 IOPS measurement shows per-file overhead dominating EBS cost at a site's file-size mix |
Non-Goals
| Spillway does not | Because |
|---|---|
| Deliver in order | Files may reach the consumer in any order. |
| Deliver exactly once | Delivery is at least once. Consumers dedupe on (DID, data sink) for at least retentionHours (assumption A3 in the overview). |
| Transform data, or route beyond channel selection by URL path | A channel is one path from DeltaFi to one consumer. Transformation and routing stay in DeltaFi. |
| Keep a database | State lives in local files and S3 objects. |
| Bound the loss of a local volume in software | Local durability is the volume's (assumption A2). Choose a durability profile for the loss you must survive (see Durability Profiles). |
| Follow redirects, or accept methods other than POST and PUT | A consumer's 3xx is not followed, and any other inbound method gets 405. |
Limits and Defaults
Every row is per instance and per channel unless it says otherwise. A link in the last column goes to the setting's reference.
| Area | Limit | Default | Setting |
|---|---|---|---|
| Admission | Request headers | 64 KiB, then 431 | Built in |
| Admission | FlowFile attributes | 64 KiB | Built in |
| Admission | Largest file | 10 GiB, then 413 | channels[].maxFileSize, see Channels |
| Admission | Concurrent inbound requests per channel | 32, then 503 stream cap | channels[].maxStreams, see Channels |
| Admission | Inbound connections for the instance | 4 × the sum of maxStreams over channels | Derived from channels[].maxStreams |
| Admission | Inbound connection life | Closed after 1,000 requests or 5 minutes | Built in |
| Pass-through | Longest predicted consumer time | 50 ms | channels[].passThrough.maxTime, see Channels |
| Pass-through | Memory-path size | 1 MiB, at most 16 MiB and at most maxFileSize | channels[].passThrough.memoryBytes, see Channels |
| Pass-through | Wait for the consumer after the body ends | 8 s, and it must be below DeltaFi's 10 s timeout | channels[].responseBudget, see Channels |
| Pass-through | Outbound idle timeout | 5 s, and it must be below responseBudget | channels[].passThrough.idleTimeout, see Channels |
| Pass-through | Spill on resend after a failed large pass-through | 1 h | channels[].passThrough.spillNextTtl, see Channels |
| Pass-through | Live bypass of a backlog | A backlog younger than 1 h | channels[].passThrough.bypassMaxAge, see Channels |
| Pass-through | Delivery slots kept free for live arrivals | The smaller of 2 and maxConnections − 1 | channels[].passThrough.reservedSlots, see Channels |
| Local storage | Soft limit, where demotion starts | 50% | storage.local.softLimitPct, see Local Storage |
| Local storage | Hysteresis, where demotion stops | 5 points below the soft limit | storage.local.hysteresisPct, see Local Storage |
| Local storage | Hard limit, above which arrivals that would be stored get 503 hard limit | 80%, at most 95% | storage.local.hardLimitPct, see Local Storage |
| Local storage | Fair-share admission band | From the hard limit minus the hysteresis to the hard limit: 75% to 80% | Derived from the two settings above, see Channels Sharing a Volume |
| Local storage | Usage measure | The larger of the byte fraction and the inode fraction of the filesystem; with storage.local.maxBytes set, Spillway's own bytes against that budget | Built in, see Local Storage |
| Local storage | Group commit window | 1 ms | Built in |
| Delivery | Outbound connections per channel | 8 | channels[].outbound.maxConnections, see Channels |
| Delivery | Adaptive limit halves above this consumer latency | 500 ms | channels[].outbound.adaptive.latencyTarget, see Channels |
| Delivery | Connect, idle and response timeouts | 2 s, 60 s and 60 s | channels[].outbound.timeouts, see Channels |
| Delivery | Response body read after the status | At most 2 s and 1 MiB | Built in |
| Delivery | Breaker | Opens after 5 consecutive consumer failures, stays open 30 s, then probes every 30 s | channels[].outbound.breaker, see Channels |
| Delivery | Entries added to memory per step of a bucket load | 16,384 | Built in |
| Retry | Attempts before the DLQ | 10 | channels[].outbound.retry.maxAttempts, see Channels |
| Retry | Backoff | 30 s doubling to 1 h | channels[].outbound.retry.backoff, see Channels |
| Retry | Retry entries held in memory per channel | 4,096; the rest stay on disk | Built in |
| Segments | Target size | 64 MiB, at most 1 GiB | storage.s3.segmentTargetBytes, see Advanced: Packing and Transfers |
| Segments | Members and time span | At most 1,024 files, received within 60 minutes | Built in |
| Segments | Upload | Multipart above 5 GiB, with parts of max(16 MiB, size ÷ 9,000) | Built in |
| Segments | Size of one demotion job | About 64 segments or 65,536 files | Built in |
| Segments | Concurrent uploads and promotion jobs across channels | 8, from 1 to 64 | storage.s3.transferParallelism, see Advanced: Packing and Transfers |
| Segments | Promotion credit ahead of delivery | The larger of one segment and 30 s of the channel's delivery rate, or of its spare consumer capacity when that is higher | Built in |
| Retention | Time before an undelivered file ages off | 336 h (14 days) | channels[].retentionHours, see Channels |
| Retention | Lateness of S3 age-off, which works per segment | Up to 1 h | Built in |
| Audit | Journal rotation | At 64 MiB or 5 minutes | Built in |
| Audit | Unshipped journal on the local volume, above which arrivals that would be stored get 503 audit backlog | 10% of the volume | audit.maxLocalBytes, see Audit |
| Audit | Shipped audit objects kept in S3 | 90 days | audit.retentionDays, see Audit |
| Clocks | Offset to the object store's clock | Alert above 5 s; above 60 s, or unknown, age-off and the audit sweeper's deletes are suspended | Built in |
| Startup | First store probe | Verdict within 10 s | Built in |
| Startup | Open files | The budget in Open-File Budget; one channel at its defaults needs 8,654 | Derived from maxStreams, maxConnections and transferParallelism |
| Admin | DID lookup | One at a time, then 429; ends within 2 minutes | Built in, see DID Lookup |
| Admin | DLQ purge by DID | At most 1,000 DIDs per request | Built in, see DLQ Purge by DID |
The single-instance target, about 965 files/s normal and 4,847 files/s in a 600 s burst on one c8gn.4xlarge with a 369 GB gp3 volume, about 16.7 TB/day at a 200 KB mean file, is under Single-Instance Target. On that volume a burst during a consumer outage reaches the hard limit in about 138 s from a steady outage state, or 308 s from empty, because one instance cannot demote at burst rate.
Durability Limitations
Spillway makes the guarantees in Guarantees. These limits sit outside them.
| Limitation | What it means | What to do |
|---|---|---|
| A1: pass-through audit is best effort on host failure | A kernel panic or power loss of the Spillway host can lose the audit rows of the last few milliseconds of pass-through files. It loses an audit row only, never a transmission. A process crash loses nothing. | Nothing; DeltaFi's own DeltaFile records the egress. |
| A2: local files are as durable as the local volume | Losing an unmirrored volume loses its local backlog, its DLQ entries and its unshipped audit journal. | Use a mirrored disk or a reattachable network volume (see Durability Profiles). |
| s3proxy does not fsync | If the host running Spillway's own s3proxy loses power, data just demoted to it can be lost. Spillway has deleted its local copy, so the files are gone without an audit record of the loss. | Use AWS S3 or another resilient store (see Choosing an Object Store). |
| Local NVMe is supported at the site's own risk | Instance-store NVMe is lost when the instance stops or its host fails. Gate 1 measures gp3 only. | Size from the gp3 figures and accept the risk, or use a network volume. |
| Consumers see duplicates | Every crash window and budget expiry resolves to a duplicate delivery, never a loss. | The consumer dedupes on (DID, data sink). |
Operational Caveats
| Caveat | Detail |
|---|---|
| Default directories share DeltaFi's filesystem | spool_dir and s3_dir default under DeltaFi's data directory. deltafi up refuses both on one filesystem unless storage.local.maxBytes is set, and a spool that shares DeltaFi's disk counts DeltaFi's own data as local usage (see Enabling Spillway). |
| Alerts reach no one by default | DeltaFi's Grafana and the standalone Grafana have no contact point until you add one (see Alerts). |
internal mode has no authentication | Anything on the deltafi network can send files to the inbound listener and call the admin API (see Security). |
| One channel per DeltaFiEgress sink | DeltaFiEgress names no data sink, so two sinks sending one DID to one channel look like duplicates (see Supported Egress Formats). |
metadataKey must match | A sink whose HttpEgress metadataKey differs from the channel's gets 400 missing did. A channel delivering to DeltaFi's egress-sink needs metadataKey: DeltafiMetadata (see Pointing a Data Sink at Spillway). |
| Resume policies are required | Without the DeltaFi auto-resume policies a 503 from Spillway leaves the file errored in DeltaFi (see Resume Policies). |
| The plugins key must be unencrypted | A channel's client certificate key with a passphrase fails to load (see Enabling Spillway). |
| Identity defaults are the same everywhere | Every install's default instance.id and instance.cluster are identical, and duplicates are not detected in this release. Set your own before the first start (see Before the First Start). |
instance.cluster cannot change later | Changing it orphans the data stored under the old value (see Instance). |
| A degraded volume stops backlog delivery | While the volume is degraded, Spillway sends no backlog deliveries. Arrivals that would be stored get 503 degraded, and every admin mutation except volume reset and force-demote is refused (see Local volume degraded). |
| Consumer-scoped failures do not spend retries | A failure that blames the consumer counts toward opening the breaker and leaves the file's attempt count alone. Only file-scoped failures count toward maxAttempts. |
| HttpEgress holds a DeltaFi thread for each response | DeltaFi's send rate is closed-loop on Spillway's response time, and threads are shared by every sink of the action class (see DeltaFi Thread Coupling). |
| A hard-limit episode is visible in DeltaFi | When the volume is full, DeltaFi sees 503 hard limit and retries through its resume policies until demotion and delivery make room. |
Qualification Status
Gate 1 is the check that the single-instance release works on its target hardware. deltafi-spillway/test/gate1/README.md maps each check to how it is proved, and the results go in the Gate 1 record, docs/superpowers/plans/2026-11-11-spillway-gate1-record.md. As of 2026-11-21 the record holds these results, and no Gate 1 row has a recorded verdict.
| Gate 1 check | Recorded result |
|---|---|
| Ledger clean across the failpoint, kill -9 and power-loss suites | make crash-test and make powerloss-test passed on 2026-11-17 on commit 5c8c01b02's tree. The record lists both to run again after a fix round to the suites, and holds no rerun. |
| Pass-through adds under 5 ms p99 | No recorded run. Smoke runs on a laptop only. |
| Spill rate and IOPS on gp3 (runs G1, G2 and G3) | No recorded run. Targets are written. No Linux run of the benches has been made. |
| Single-stream promote throughput on gp3 | No recorded gp3 run. A laptop smoke run measured 130.5 MB/s a stream on one stream against a same-host s3proxy. |
| DeltaFi throughput at the default 4 egress threads | No recorded run. |
| Slow, intermittent, down and large-file-failing consumers, 24 h each | No recorded run. |
| S3 outage with the consumer down | No recorded drill. Phase 1 of the end-to-end test ran with Spillway's s3proxy stopped and reached the hard limit. |
| Short retention, age-off on both tiers | No recorded drill. |
| End-to-end DeltaFi: full episode and Spillway kill | Passed on 2026-11-17 against a local Compose, DeltaFi 2.68.1-SNAPSHOT, commit 07b6cb808: 4,000 of 4,000 DeltaFiles COMPLETE, none in ERROR, in 208 s. |
| Restart time with a full local tier | No recorded run. Smoke runs on a laptop only. |
| One pilot channel in a Compose deployment | No run. The site and channel are not named. |
| Power reset and dm-flakey drills on a real VM | No recorded run. |
| Fluid simulation reruns | The spec records reruns on 2026-11-11, 2026-11-17 and 2026-11-19. |
| Largest minute bucket per channel (290,820 files) | Developer-machine figures only; no recorded run on the G3 host. |
A figure on this page that depends on a run listed as not recorded is a planning value from the sizing rules, not a measurement.

