Skip to content

Spillway SOPs ​

Experimental Alpha

Spillway is an experimental alpha. Its configuration, behavior and storage formats may change in future releases.

Each procedure starts from its trigger, an alert or a planned change, and uses the admin API, the Spillway dashboard and, where stated, the spillway CLI. Each Spillway alert links to the procedure for it.

The commands use spillway_admin and $ADMIN, defined in Reaching the admin API, and $CHANNEL for the channel's id:

bash
CHANNEL=consumer-a

Inside DeltaFi's Compose stack, the configuration file is <installDirectory>/config/spillway/spillway.yaml, the local volume is the deltafi.spillway.spool_dir directory, and the logs are docker logs deltafi-spillway. A saved change to the configuration file applies on reload; a setting marked restart in Configuration also needs docker restart deltafi-spillway. In the standalone stack, run the commands in the stack's directory: the configuration file is config/spillway.yaml, the local volume is $SPILLWAY_DATA_DIR/spool, the logs are docker compose logs spillway and a restart is docker compose restart spillway. While Spillway refuses files with 503 or restarts, DeltaFi resends them through the sinks' resume policies, so check those are loaded whenever a procedure expects 503s.

Consumer down for long ​

Trigger: ticket spillway-breaker-open, a channel's breaker open for 10 minutes.

  1. Confirm the breaker is open and see how the consumer fails:

    bash
    spillway_admin "$ADMIN/admin/channels/$CHANNEL"

    breaker is open. On the dashboard's Delivery errors panel, class consumer with reason connect, idle or a 5xx status means the consumer is unreachable or failing. Class misconfig is Consumer misconfigured instead.

  2. Confirm the outage, and how long it will last, with the consumer's owner. Meanwhile files spill to the local volume and DeltaFi is unaffected.

  3. Check that demotion keeps up: demotionMarginBytesPerSecond in GET /admin/channels, or the Demotion margin panel, is positive. If it is negative, or timeToHardSeconds is falling, follow Approaching the hard limit.

  4. Check retention. The channel's oldest file (oldestAgeSeconds) must still be within retentionHours after the rest of the outage and the catch-up that follows: catch-up after an outage of length T is about T × ρ ÷ (1 − ρ), where ρ is the inflow ÷ the consumer's capacity. If retention will be exceeded, raise the channel's retentionHours in the configuration file, if the object store has room for the extra inflow. It applies on reload.

  5. Nothing needs to be done to restart delivery. After breaker.openFor the breaker sends a probe every breaker.probeEvery; the first success closes it, and the adaptive limit grows again from 1. A probe sends a file from the local volume, so a channel whose whole backlog was demoted promotes one segment from S3 to probe with, and keeps it local, whatever the soft limit or its fair share, until the breaker closes; only the hard limit or a force-demote takes it.

Done when the consumer is back and catch-up time is falling: the breaker is closed and the Catch-up time panel falls.

Consumer slow ​

Trigger: ticket spillway-mismatch, the mismatch ratio above 1 for 30 minutes; or page spillway-stalled, files due on the local volume with the breaker closed and no file accepted by the consumer for 15 minutes.

  1. For spillway-stalled, confirm the channel holds files it should be sending:

    bash
    spillway_admin "$ADMIN/admin/channels/$CHANNEL"

    breaker is closed and backlog.local.files is above 0 and not falling. The page counts only the local tier, whose files are all due: retries waiting on their not-before, and a backlog held only in S3, never page it, so an S3 outage with a healthy consumer is S3 down, not this.

  2. Look at the consumer: the Consumer latency panel against outbound.adaptive.latencyTarget, and Delivery errors with status 429 or 503. The adaptive limit halves on each of those, which shows as Connections in use holding at a falling limit.

  3. If the consumer has room for more concurrent requests, and its owner agrees, raise the channel's outbound.maxConnections in the configuration file (see Sizing). The reload rebuilds the channel. Each connection adds 4 to the open-file budget.

  4. Otherwise accept the backlog: it spills and demotes, and it drains at the consumer's pace. Watch demotion and retention as in Consumer down for long.

  5. If other channels store files on the same volume, nothing needs to be set: above the soft limit this channel's files beyond its fair share demote first, so another channel's burst stays local, and near the hard limit this channel's arrivals, not the others', get 503 fair share; see Channels Sharing a Volume.

  6. 503 refusals with reason pass_through_failed (body spillway: pass-through failed) are large files whose pass-through failed; DeltaFi's resend spills them. If they keep coming, send large files to the local tier first with passThrough.maxBytes, or set passThrough.mode: never.

Done when the mismatch ratio is below 1, and, for spillway-stalled, the consumer's accepted files are rising.

Consumer intermittent ​

Trigger: ticket spillway-intermittent, more than 6 breaker state changes in an hour.

  1. Compare the consumer's delivered rate with the producer rate over the last hour on the Producer, consumer and capacity panel, and look at the open spells on the Breaker state panel.
  2. Find what fails on the Delivery errors panel (reason connect, idle, mid-stream, or a status), and work with the consumer's owner on it.
  3. If the consumer drops connections on large transfers, send large files to the local tier first with passThrough.maxBytes, or set passThrough.mode: never. Change the breaker's failures, openFor and probeEvery only with the consumer's owner.

Done when breaker transitions are back to normal and the ticket clears.

Consumer misconfigured ​

Trigger: ticket spillway-misconfigured, a channel's breaker open after its consumer answered with a misconfiguration status: one of breakerStatuses (default 401, 403, 404, 405) or a 3xx.

  1. Find the status: the Delivery errors panel, class misconfig, shows it in its status label. 401 and 403 point at the credentials, 404 and 405 at the URL or the method, and a 3xx at the URL: Spillway does not follow redirects.

  2. If the consumer's side was wrong and is fixed, there is nothing to do: the next probe closes the breaker.

  3. If Spillway's side is wrong, fix the channel's outbound.url or outbound.auth in the configuration file and save. The reload rebuilds the channel with new clients, which read the credential files again, and the breaker starts closed.

  4. If the fix is new content in the same credential file, replace the file: Spillway reads it again within about 20 seconds. Check it was taken:

    bash
    docker logs deltafi-spillway 2>&1 | grep -E 'outbound credentials reloaded|outbound credential reload rejected' | tail -1

    The next probe uses the new credentials.

Done when deliveries resume: the breaker is closed and the consumer's accepted files are rising.

Approaching the hard limit ​

Trigger: page spillway-time-to-hard (the hard limit within 30 minutes), page spillway-demotion-margin (demotion behind local inflow for 10 minutes), or ticket spillway-refusals (more than 1% of files refused with 503).

  1. See where the volume stands:

    bash
    spillway_admin "$ADMIN/admin/channels"

    timeToHardSeconds and demotionMarginBytesPerSecond are the instance's projections, and each channel's backlog shows where the data is. On the dashboard, Local storage pressure shows bytes and inodes against the limits.

  2. For spillway-refusals, read the reasons on the 503 refusals by reason panel. hard_limit and enospc belong here; fair_share means usage is near the hard limit and a channel is past its fair share of the volume, and its excess is demoting; other reasons have their own procedure in Refusal reasons.

  3. Check S3: errors on the S3 requests panel. If S3 is down, demotion cannot run, so follow S3 down. Local usage then grows to the hard limit: from hardLimitPct − hysteresisPct arrivals from channels past their fair share get 503 fair share, and at the hard limit every stored arrival gets 503 hard limit, which DeltaFi retries.

  4. If S3 is healthy but demotion is too slow, raise storage.s3.transferParallelism (at most 64; it applies on reload). Each step adds 1024 to the open-file budget. Check that the store can take the extra uploads.

  5. If one channel's backlog is filling the volume, its excess over its fair share demotes first and, near the hard limit, its arrivals, not every channel's, are refused with fair share; the channel's consumer is what to fix, as in Consumer slow.

  6. If inode use is the higher of the two pressure lines, small files are running the volume out of inodes before bytes. Plan to reformat the volume with XFS or ext4 -i 4096 (see Durability profiles).

Done when the demotion margin is positive, the time to the hard limit is rising, and refusals have stopped.

Promotion blocked ​

Trigger: ticket spillway-promotion-blocked, a channel whose breaker is closed unable to promote from S3 for 30 minutes.

The mover promotes a channel's oldest S3 segment only while it fits. With usage at or above soft − hysteresis, a channel promotes only while other channels hold local data and its own local, retry and DLQ bytes plus the segment stay within its fair share: soft − hysteresis split equally among the channels holding such bytes. No promotion takes the volume to the hard limit, and, outside the overrides in steps 4 and 5, none takes it to the soft limit. The channel's S3 backlog waits, and keeps aging, until there is room.

  1. Confirm the channel is blocked and see where its data is:

    bash
    spillway_admin "$ADMIN/admin/channels/$CHANNEL"

    promotionBlocked is true while the mover's last pass found it blocked; backlog shows its local, retry, DLQ and S3 bytes. It reads false, and the panel 0, for a channel the mover does not try to promote: one with nothing in S3; one not delivering (its breaker not closed, or paused), except one with an open breaker owed a probe, which holds an S3 backlog and no local or retry entry to probe with; one being force-demoted; one whose backlog Spillway has not yet counted, as just after a restart; and one whose S3 backlog waits behind older local data, so delivery stays oldest first. On the dashboard, Promotion blocked shows which channels are blocked and Local storage pressure shows usage against the limits.

  2. One channel over its fair share while others hold the volume. Usage is at or above soft − hysteresis, the blocked channel holds more than its share, and other channels hold the rest. List every channel's backlog:

    bash
    spillway_admin "$ADMIN/admin/channels"

    The blocked channel's S3 backlog waits until its consumer drains its local backlog below its share, or the volume falls below soft − hysteresis. If its local backlog is not falling, its consumer is behind; follow Consumer slow. If other channels hold the volume because their consumers are down or slow, recovering those consumers frees the room; follow Consumer down for long or Consumer slow for them.

  3. The only channel holding data, at or above soft − hysteresis. With no other channel holding local, retry or DLQ bytes, the channel has no fair share to promote within, so on a single-channel site the channel is blocked once usage is at or above soft − hysteresis, and its promotion waits for usage to fall. This is expected while its consumer is slower than its inflow, and the ticket then usually fires alongside spillway-mismatch. Follow Consumer slow: once the consumer outpaces inflow, the local backlog drains, usage falls below soft − hysteresis and promotion resumes. If the consumer keeps up and usage still stays at or above soft − hysteresis, check the volume for other data, which usage also counts.

  4. The large-segment tier at the hard limit. A channel whose next segment is at least the soft limit's bytes, from a file near its maxFileSize, could never land below soft, so the soft limit does not hold it back: it promotes, within its fair share, while the segment would land below the hard limit. Spillway warns at startup and on reload when maxFileSize is at least soft − hysteresis of the volume. The segment waits until other channels' backlogs drain or demote enough room below the hard limit; follow Approaching the hard limit if usage stays high. Lower the channel's maxFileSize so later files are not this large. A next segment of at least soft − hysteresis but under soft has no override: it promotes only while its landing stays below soft and either usage is below soft − hysteresis or the segment keeps the channel within its fair share while another channel holds data. So with usage at or above soft − hysteresis a channel that is the only one holding data waits until usage falls, and a larger segment needs usage lower still. Lowering maxFileSize helps here too.

  5. Once the channel's oldest S3 entry passes 90% of its retention, its promotion overrides the fair-share and soft gates, bounded by the hard limit, and Files aging off applies as well.

Done when promotionBlocked is false, the Promotion blocked panel reads 0 for the channel, and its S3 backlog is falling.

S3 down ​

Trigger: ticket spillway-s3-errors (more than 1% of S3 requests failing for 10 minutes), ticket spillway-journal-backlog (more than 1 GiB of unshipped audit journal), or page spillway-audit-time-to-limit (the journal reaches audit.maxLocalBytes within 2 hours).

While S3 is down, pass-through, spill and delivery from the local volume continue. Demotion, promotion, audit shipping, sharing of controls with other instances and S3 age-off wait for S3, and DID lookups search the local volume only. A control change (pause, resume, connection cap) applies at once and is uploaded when S3 returns. If Spillway restarts during the outage it starts in local-only mode and probes the store every 30 s; until the store answers, age-off waits too, because the clock offset to the store is unknown.

  1. Confirm on the S3 requests panel (by operation and code; error is no answer at all) and in the logs. Credential errors count as unreachable: check storage.s3.credentialsFile, which Spillway reads again within a minute of a change.
  2. Escalate to the store's owner.
  3. Watch the local volume fill toward the hard limit, and follow Approaching the hard limit as it nears.
  4. Watch Audit journal and Audit journal time to limit. Above audit.maxLocalBytes (default 10% of the volume), arrivals that would be stored get 503 audit backlog while pass-through continues. These refusals can come and go, since gzipping each closed journal file lowers the unshipped size for a while. If S3 will not be back in time, raising audit.maxLocalBytes (it applies on reload) buys time at the cost of local space, since journal bytes count toward local usage.
  5. When S3 returns, the next probe opens the store again, and demotion and audit shipping resume by themselves.

Done when S3 errors clear and the audit journal drains: spillway_audit_journal_bytes falls back to its usual level.

Local volume degraded ​

Trigger: page spillway-volume-degraded.

A write or sync on the local volume failed, and Spillway no longer trusts the volume. Arrivals that would be stored, and memory-sized pass-throughs whose consumer fails, get 503 degraded; pass-throughs the consumer accepts continue. Every admin mutation except volume/reset and force-demote is refused with 503 volume degraded, because its audit rows cannot be recorded. A force-demote is accepted without its control row and logged at warn.

  1. Find the failure in the logs, then check the disk: the kernel log, the filesystem, the drive's health.

    bash
    docker logs deltafi-spillway 2>&1 | grep -i degrad | tail
  2. If the volume can still be read, force-demote to evacuate it to S3, then check each channel's forceDemote and evacuated:

    bash
    spillway_admin -X POST "$ADMIN/admin/force-demote"
    spillway_admin "$ADMIN/admin/channels"

    The force-demote uploads what it can read, without recording rows or deleting anything, and evacuated turns true for each channel once every local file is in S3. A force-demote that was on before the volume degraded does the same.

  3. If the volume checks out, clear the flag:

    bash
    spillway_admin -X POST "$ADMIN/admin/volume/reset"

    It answers {"degraded": false}, and re-queues the entries left out of delivery while the volume was degraded. If it answers 409, the audit journal's fsync failed, and only a restart clears the flag; a restart also repeats the startup checks:

    bash
    docker restart deltafi-spillway
  4. If the volume must be replaced and can still be read, bring it back into service with step 3, then move its backlog to S3 before replacing it:

    bash
    spillway_admin -X POST "$ADMIN/admin/force-demote"

    Wait until every channel's backlog.local and backlog.retry are 0. DLQ entries never demote: replay or purge them first (see Poison file), or copy the dlq/ directory. Then stop Spillway, replace the volume and start it. Files that were only on a lost volume are lost (assumption A2).

Done when spillway_volume_degraded is 0 and spilling is re-enabled: no more degraded refusals, and spilled bytes rise again.

Corrupt entries ​

Trigger: page spillway-quarantine, an entry quarantined in the last 5 minutes.

A file failed its checksum when read for delivery, demotion, promotion or age-off. It was moved aside with a quarantined audit row and is never redelivered; DeltaFi already counts it as delivered, so recovering it is manual.

  1. Find the channel on the Aged off, quarantined and lost panel, and the files in the logs.
  2. Inspect them. Local entries are in the volume's quarantine/ directory as <uuid>.ent; S3 entries and segments are under q/<cluster>/<channel>/<instance>/ in the bucket.
  3. Check the local volume (as in Local volume degraded) or the object store, whichever held the file.
  4. Never remove a file from local/, retry/ or dlq/ by hand: Spillway records a vanished file as lost only when delivery opens it (see Lost files); one that age-off or a DLQ walk reaches first is dropped with no terminal row. Removing inspected files from quarantine/ frees their space; spillway_quarantine_bytes drops only at the next restart. Spillway never deletes q/ objects in S3; remove them by hand once inspected.

Done when the cause is found.

Lost files ​

Trigger: page spillway-lost, an acknowledged file lost in the last 5 minutes.

Spillway opened a queued local file to deliver it and the file was gone. DeltaFi already counts the file as delivered, and Spillway has nothing left to send. It wrote a lost audit row with the error entry file missing at delivery: <path>, counted it in spillway_lost_total, and will not retry. The row's data_sink may be empty: a file Spillway listed from disk, as after a restart, took its header with it, while one committed or promoted since Spillway started names its sink. An empty data_sink stands for every data sink of that DID on the channel.

  1. Find the channel from the alert, and the paths from the lost audit rows or the entry file missing at delivery log lines.
  2. Find who removed the files: a manual deletion under local/, retry/ or dlq/, a volume restored from an older snapshot, or storage that lost files. Check the local volume as in Local volume degraded.
  3. Recover the content from DeltaFi or the original source by DID; nothing in Spillway holds it.

Done when the cause is found and the lost DIDs are reported to their owners.

Poison file ​

Trigger: ticket spillway-dlq, a channel's DLQ not empty.

A file reaches the DLQ when its consumer answered a passThroughStatuses status while it was delivered from the backlog (class poison), or when it used up outbound.retry.maxAttempts (class file). DLQ entries stay on the local volume until an operator replays or purges them, or they age off.

  1. Find why on the Delivery errors panel and in the logs.

  2. List the DIDs. DLQ files are named <receivedMs>-<did>-<uuid>.ent. A DID sent to the channel by two data sinks has a file for each; the lookup answers one of them, with its dataSink:

    bash
    ls <spool_dir>/dlq/$CHANNEL/
    spillway_admin "$ADMIN/admin/dids/<did>?channel=$CHANNEL"
  3. Fix the consumer or the data, with the consumer's owner.

  4. Then either replay the DLQ to delivery:

    bash
    spillway_admin -X POST "$ADMIN/admin/channels/$CHANNEL/dlq/replay"

    or purge the named DIDs, which purges every data sink's DLQ file of each DID in the channel:

    bash
    spillway_admin -X POST -H 'Content-Type: application/json' -d '{"dids": ["<did>"]}' \
      "$ADMIN/admin/channels/$CHANNEL/dlq/purge"

    or purge every entry received at or before a time, which first answers 409 with the counts and a token valid for one minute:

    bash
    spillway_admin -X POST "$ADMIN/admin/channels/$CHANNEL/dlq/purge?before=<epoch ms>"
    spillway_admin -X POST "$ADMIN/admin/channels/$CHANNEL/dlq/purge?before=<epoch ms>&confirm=<token>"

    Purged files get purged audit rows; they are not delivered.

    A replay or purge started while the DLQ is still being counted after a restart keeps it uncounted until the replay or purge finishes: its age-off is off, its bytes are out of usage, and dlqCounted stays false.

Done when the DLQ is empty: backlog.dlq.files is 0 and dlqCounted is true.

Orphaned channel data ​

Trigger: Spillway refuses to start, logging startup failed with channel <id> has entries on the volume but is not in the configuration; add it back, or start with --abandon <id> to age its data off with audit rows (the container keeps restarting); or ticket spillway-orphaned, S3 data under this instance's prefix for a channel missing from the configuration.

  1. Decide whether the channel was meant to go.

  2. If not, add it back to the configuration file with the same id. A refused startup succeeds on the container's next restart; S3 data is delivered again once the channel is configured.

  3. If it was, start Spillway with --abandon <id> to age the channel's data off with aged_off audit rows. In Compose, override the service's command in site/compose.yaml and run deltafi up:

    yaml
    services:
      deltafi-spillway:
        command: ["--config", "/config/spillway.yaml", "--abandon", "old-channel"]

    Spillway ages off the channel's local data at once and its S3 segments once the store is reachable, then logs channel abandoned. Remove the override and run deltafi up again, so a later reload removing a channel of that name is checked again.

Done when startup succeeds and spillway_orphaned_bytes is 0 or absent. The series is measured once the object store becomes reachable after startup, then by the sweeper about hourly, and an abandon clears it at once.

Planned consumer maintenance ​

Trigger: the consumer's owner plans downtime.

  1. Before it starts, pause the channel:

    bash
    spillway_admin -X POST "$ADMIN/admin/channels/$CHANNEL/pause"

    The channel delivers nothing and sends no probes, and its arrivals spill. The pause applies on every instance and survives a restart. A paused channel's data is the first to demote under storage pressure, and it raises no mismatch ticket.

  2. During the maintenance, watch storage and retention as in Consumer down for long.

  3. After it, resume the channel:

    bash
    spillway_admin -X POST "$ADMIN/admin/channels/$CHANNEL/resume"
  4. Watch the Catch-up time panel.

Done when the backlog is cleared: backlog.local, backlog.retry and backlog.s3 are 0.

Planned node maintenance ​

Trigger: maintenance of the host running Spillway.

  1. If the local volume stays with the host and the host comes back, no data needs to move: stop Spillway, do the maintenance and start it again. Its backlog stays on the volume, restart time does not depend on its size, and DeltaFi resends what it could not deliver meanwhile.

    bash
    docker stop deltafi-spillway
    docker start deltafi-spillway
  2. If the volume may not come back, move the backlog to S3 first; S3 must be reachable:

    bash
    spillway_admin -X POST "$ADMIN/admin/force-demote"

    Wait until every channel's backlog.local and backlog.retry are 0 before stopping Spillway. Shutdown waits for a force-demote only within the container's 60 s stop grace period, so do not rely on it. DLQ entries never demote: replay or purge them first, or keep the volume.

  3. After the maintenance, start Spillway. A force-demote ends at a restart, so promotion resumes by itself; if Spillway was not restarted, end it:

    bash
    spillway_admin -X DELETE "$ADMIN/admin/force-demote"

Done when the instance is back: its health check passes, GET /readyz answers 200 and deliveries resume.

Instance lost ​

V1

Adoption of a lost instance's S3 backlog, the spillway_unadopted_s3_backlog_bytes alert that pages for it, POST /admin/instances/<id>/adopt and spillway adopt-local are part of V1. This release runs one instance, whose S3 backlog waits for it to return.

Trigger (V1): page for an unadopted S3 backlog, a stale peer's S3 backlog older than instance.adoptAfter.

  1. Wait for automatic adoption, or force it with POST /admin/instances/<id>/adopt.
  2. For a volume detached from a lost host, run spillway adopt-local --volume <path> to demote everything on it, DLQ entries included.

Done when the adopter's S3 backlog is falling. Adoption is part of V1.

Duplicate identity ​

V1

Duplicate identity detection and its spillway_duplicate_identity alert are part of V1.

Trigger (V1): page when a heartbeat for this instance's id carries another process's boot id.

  1. Find and stop the second process, such as a cloned configuration or a force-deleted pod that is still running.
  2. Expect duplicate deliveries while both ran (assumption A3).

Done when the alert clears. Duplicate identity detection is part of V1.

Files aging off ​

Trigger: page spillway-aging-off-page (a channel's oldest file older than 80% of its retention) or ticket spillway-aging-off-ticket (older than 50%).

  1. Find the channel and tier on the Oldest entry vs retention panel, or oldestAgeSeconds in the channel's status.
  2. Prioritize the consumer's recovery, with the procedure for why it is behind (Consumer down for long, Consumer slow).
  3. Files not delivered by retentionHours are aged off with aged_off audit rows. DeltaFi already counts them delivered, so the audit is their only record. S3 ages off whole segments, so S3 files can age off up to an hour late.
  4. Extend the channel's retentionHours (it applies on reload) only if storage allows: the local volume and the object store must hold the inflow for the extra time.

Done when the oldest age is falling.

Clock skew ​

Trigger: ticket spillway-clock-skew, the instance's clock more than 5 s off from the object store's for 5 minutes.

  1. Read the Clock offset panel; a positive offset means Spillway's clock is ahead of the store's.
  2. Fix NTP on the Spillway host, or on the store's host if that is the one off.
  3. Above 60 s, age-off and the sweeper's audit deletes are suspended. They resume by themselves once the offset is below 60 s.

Done when the clock offset is below 5 s.

Config drift ​

Trigger: ticket spillway-reload-failed, a configuration reload rejected in the last 15 minutes; ticket spillway-config-drift, instances running configurations with different hashes for 15 minutes; or ticket spillway-restart-required, an instance holding a restart-only setting at its running value for 10 minutes.

  1. For a rejected reload, read why; the error names the setting:

    bash
    docker logs deltafi-spillway 2>&1 | grep -E 'configuration reload rejected|outbound credential reload rejected' | tail -1

    Spillway keeps its previous configuration. An outbound credential reload rejected line names a channel whose credential files changed but fail to load; that channel keeps its running credentials until the files are fixed (see Credential rotation). While the file is invalid the container's health check fails too, so a whole-stack deltafi up fails until the file is fixed. A change to admin.listen does the same until Spillway restarts, since the check dials the new port.

  2. Fix the file and save. Common causes: an invalid value; a removed channel that still holds data (see Adding and removing channels); a configuration above the open-file budget; a change to instance.id or storage.local.path, which are refused while Spillway runs.

  3. A log line restart required for changed settings; they keep their running values until then names settings that wait for a restart, and spillway_restart_required is 1 until it happens; restart Spillway to apply them. When every instance holds the same setting, the instances still agree on the configuration hash, so spillway-config-drift stays quiet and spillway-restart-required is the alert that fires. Confirm the loaded file is the intended one, then restart each instance whose Restart required panel shows it.

  4. For drift between instances, compare hashes on the Configuration hash panel. The hash is of the configuration each instance runs, so instances that loaded the same file but hold different restart-only settings differ: a restart-only change applied to one instance by a restart, and not yet to another. Compare spillway_config_file_hash_info to tell a different file from a held setting. Apply the intended file to every instance, and restart each instance whose spillway_restart_required is 1.

  5. Check the container is healthy again:

    bash
    docker inspect --format '{{.State.Health.Status}}' deltafi-spillway

Done when every instance's configuration hash matches and no reload is rejected.

Metrics stopped ​

Trigger: ticket spillway-metrics-stopped, an instance that pushed metrics in the last day has pushed none for 5 minutes. The alert's instance label names it. While its metrics are missing, no other Spillway alert can fire for that instance.

  1. Check that Spillway is running and healthy:

    bash
    docker inspect --format '{{.State.Status}} {{.State.Health.Status}}' deltafi-spillway
    spillway_admin "$ADMIN/healthz"
    spillway_admin "$ADMIN/readyz"

    /healthz answers ok while the process serves. /readyz answers ok once the volume lock is held, the committer runs and the object store probe has a verdict; not ready before that, and shutting down once shutdown begins. A container that is stopped or keeps restarting has its reason in the logs; a refused startup naming a channel is Orphaned channel data.

  2. If Spillway runs, look for failed pushes:

    bash
    docker logs deltafi-spillway 2>&1 | grep 'metrics push failed' | tail -5

    Each line names the push URL and the error, such as a refused connection or a status VictoriaMetrics answered.

  3. Check that metrics.pushUrl reaches VictoriaMetrics. Inside DeltaFi it is http://deltafi-victoriametrics:8428/api/v1/import/prometheus; check DeltaFi's VictoriaMetrics is healthy:

    bash
    docker inspect --format '{{.State.Health.Status}}' deltafi-victoriametrics

    If VictoriaMetrics is down, Grafana cannot evaluate any rule, and every Spillway rule shows an error state. A change to metrics.pushUrl applies only after a restart.

  4. If Spillway answers neither health endpoint, or logs nothing while it should be pushing, it is hung. Restart it; its backlog stays on the volume and DeltaFi resends what it could not deliver meanwhile:

    bash
    docker restart deltafi-spillway
  5. If Spillway was disabled or the instance retired on purpose, nothing is wrong: the ticket clears by itself a day after the instance's last push. Silence it in Grafana until then.

Done when spillway_config_hash_info is present again for the instance, and the ticket clears at the next evaluation.

Credential rotation ​

Trigger: ticket spillway-credential-expiry, a certificate Spillway holds expiring within 14 days; or a planned rotation. The gauge covers each channel's outbound client certificate and CA and, in mtls mode, the inbound certificate and client CA.

Outbound credentials reload while Spillway runs. The inbound and admin certificates are read once at startup, so rotating them needs a restart in this release; reloading them while Spillway runs is planned for V1.

  1. Object store credential. Write the new AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY (unquoted) to storage.s3.credentialsFile. Spillway reads it again within a minute, with no restart. Change the store's side at the same time.

  2. Outbound credentials (outbound.auth certificates, keys, CA, password and token files). Replace the files in place, by rename, or by updating the Kubernetes Secret. Spillway reads each channel's files every 10 seconds and uses a change once two reads in a row agree, so within about 20 seconds; a certificate written before its key is not used until both are. A key must stay unencrypted. New connections use the new files, and connections already open finish on the old ones. Inside DeltaFi, the default client certificate is DeltaFi's plugins certificate mounted at /certs, and a deltafi ssl replacement is picked up the same way. Check each channel took it:

    bash
    docker logs deltafi-spillway 2>&1 | grep -E 'outbound credentials reloaded|outbound credential reload rejected' | tail -5

    A rejected line means the files do not load; the channel keeps its running credentials, and spillway-reload-failed tickets. Fix the files and they are read again.

  3. Inbound and admin certificates (inbound.tls, mtls mode). Replace the certificate, key or client CA files, then restart Spillway. In the standalone stack they are certs/server.crt, certs/server.key and certs/ca.crt, and the restart is, in the stack's directory:

    bash
    docker compose restart spillway

    While it restarts, DeltaFi's sends fail and its resume policies resend them.

  4. Grafana's admin password (standalone stack). Change it in Grafana. secrets/grafana-admin is read only when Grafana first creates its database, so rewriting the file does nothing.

Done when the new credentials are in use: spillway_credential_expiry_seconds shows the new expiry, deliveries succeed, and the S3 error rate is normal.

Upgrade or rollback ​

Trigger: a planned upgrade or rollback of DeltaFi, which carries Spillway's release.

  1. Run deltafi up with the new release. Spillway restarts with its data in place; restart time does not depend on the backlog, and DeltaFi resends what it could not deliver during the restart.

  2. With several instances (V1), roll one instance at a time.

  3. formats.minWriteVersion stays 1: this release has one storage format version. Raise it only after every instance runs a release that writes a newer one.

  4. After a rollback, segments written by the newer build cannot be read by the older one, and a channel holding them can be abandoned only from the newer build.

  5. Check the version each instance runs:

    bash
    docker exec deltafi-spillway /app/spillway --version

Done when every instance runs the release.

Contact US