Skip to main content
Version: 3.1

Store & Forward

Keep pipeline writes on disk while a destination is down and deliver them automatically when it recovers, so an outage does not lose data.

Where
Orchestrate › Store & Forward
Default mode
Buffer only on failure
Disk pool
80% of the store's room, shared by all buffers
Permission
durability:write for buffers; a platform administrator for the pool, pause and quotas

Overview​

A pipeline's last step usually writes to something outside MaestroHub: an MQTT broker, a database, a cloud API, an S3 bucket. Those outside systems go down for reasons MaestroHub can't control: a network blip, a maintenance window, a broker restart, an expired credential.

Without protection, every write attempted during that outage is simply gone: no retry, no record, no way to replay it later. For factory-floor telemetry or billable events, that silent loss is exactly what you don't want.

Store & Forward closes that gap. It places a durable buffer between your pipeline and the destination. When the destination is reachable, messages flow straight through. When it isn't, messages pile up safely in the buffer and are delivered automatically once the destination recovers. Whether they arrive in their original order depends on the output's Delivery order. An outage becomes a pause, not a loss.

Navigation Path: Orchestrate > Store & Forward

Store & Forward Overview answering Am I losing data on a bad dayStore & Forward Overview answering Am I losing data on a bad day

The Overview on a bad day: the room on disk runs out first, so it leads in orange; a refused record waits for a decision; an outage is held, in blue. Nothing is lost yet, and the evidence for that sits right under the four answers.

What the Overview answers​

The Overview answers one question before anything else: am I losing data? One sentence at the top says what is happening, worst first. When more than one thing is happening at once, every one of them is listed below it, worst first, and the sentence ends with "And N more things below."

Under it, four answers always sit in the same order:

QuestionWhat it tells you
Losing data?No, 0 lost when nothing was lost in the last 24 hours, counted; Not yet, 0 lost when a buffer is about to run out of room; Yes, N with the reasons when records were dropped or not kept.
How much is waiting?Records held on disk now, their size, and the age of the oldest.
How long can I hold?How long the buffer that fills fastest can keep taking writes, at its current write rate, and the clock time that means. While a backlog drains it becomes When is it done?. Show room opens the room on disk for buffers, drawn to scale, and what limits it (the disk or the capacity pool).
Need to act?No while delivery resumes by itself; Yes with what and by when when someone has to choose; Not urgent when only Failed messages wait for triage.

The evidence for the first answer is always visible right under the four. First the ledger of the outage in progress (or, when none is, of the last one): every record the buffers held = delivered + waiting + in Failed messages + lost, each term measured on its own, with Closes when the sum adds up. If part of an outage could not be counted (the engine restarted, or the buffer moved to another MaestroHub node), the gap is shown with its reason, never hidden. Then every lost record by reason with its window, and the writes that could not be buffered in the last hour but are kept in Failed messages. How this is counted names the metrics and API fields behind it, for your own alerts. Records in Failed messages are not lost: they are kept and can be replayed.

The colours mean one thing each: blue is held safely (waiting, catching up), orange is a decision for you and nothing else, green is delivering, red is data that is gone, grey is context. An outage alone is blue: the records wait on disk and deliver by itself.

Below the answer, the buffers that need attention are listed worst first, each with what it is doing, why, and a link: Decide for a buffer stopped at a refused record, Open buffer otherwise. Every output set to Do not buffer is named there too (not protected), and on a quiet day the headline counts the protected outputs. When nothing is open, Last outage says how long the last one lasted and what it held, delivered and lost, and Outages lists the recent ones with their result.

Under the actions, When you will hear next says which notification comes next: an outage that only holds is Info (channels set to info, once it has lasted a few minutes, 5 by default; nothing pages), a decision or a room level crossed is Action needed (warning), and loss is Data loss (critical). Each notification's title starts with that word. The instance's emergency pause is a status line here; the control itself is on Store & Forward capacity under System Management, for platform administrators.

A stamp on the answer says when the engine last read its buffers ("Live, updated 05:44:14 UTC+01:00", UTC on hover). If the page misses three reads in a row (about 30 seconds), or the engine's own heartbeat is older than that, the whole answer turns grey and says Not current, with the time of the last answer, so a stale page never shows a green "0 lost". Try again now reads everything again.

A reader without durability:write sees the same page with "You are viewing, not changing"; when the answer asks for a decision, Send to someone who can decide shares its sentence and the link.

tip

A healthy Store & Forward page says Nothing is waiting, and nothing was lost in the last 24 hours. Those zeros are measured, not missing. The page earns its keep on the day something goes down and you watch the buffers absorb the outage instead of losing data.

Built-in interactive guide

The page header has a How it works button that opens a short, 5-step in-app walkthrough, including an outage simulator you can use to publish messages, take a destination offline, drop a "poison" message, and watch the buffer absorb the outage and deliver the backlog once the destination is back (in publish order when the output is set to In order). It's the fastest way to build intuition before a real incident.

The simulator runs in your browser and never touches a pipeline. A trial without a destination of its own keeps using it: a one-click outage drill on the demo plant's sample pipeline is a later item, because the demo plant does not yet bring an output a drill can cut.


Why we built it: the gap it closes​

Without Store & ForwardWith Store & Forward
A write to a down destination is lost forever.The write is saved on disk and delivered when the destination is back.
You have no record of what failed during an outage.Every undeliverable message is visible and replayable.
One slow destination can stall the whole pipeline.Each destination is isolated in its own buffer; a slow one can't block the others.
A restart or crash of MaestroHub loses anything in flight.Buffers live on disk and survive restarts and crashes (see Buffers live on disk for what a power loss can cost).
When something is dropped, nobody knows.Every message a buffer drops is counted and shown, from the first one (see Every loss is counted).
A bad ("poison") message can jam everything behind it.You choose per output: set a poison message aside so good traffic keeps flowing (Any order), or hold everything behind it until you decide (In order).

In short: Store & Forward turns "destinations are unreliable" from a data-loss problem into a routine, observable, recoverable event.


How it works​

Store first, then forward​

When a pipeline produces a message for an output:

  1. Store: the message is written to a durable buffer (the "store" step).
  2. Forward: a background worker continuously reads from the buffer and delivers each message to the destination (the "forward" step).
  3. If delivery succeeds, the message is removed from the buffer. If it fails, it stays and is retried.

How aggressively step 1 is used depends on the mode you choose per output node (see Choosing a mode below). In the default mode, MaestroHub tries the destination directly first and only starts buffering once a write actually fails, so on the "happy path" there's no extra overhead.

Buffers live on disk​

Buffered messages are written to disk, not just held in memory. If MaestroHub restarts or crashes while a destination is down, the buffered messages are still there when it comes back up and delivery resumes automatically.

A write reported buffered survives a crash of MaestroHub (kill -9): it is on the operating system before it is acknowledged. A power loss can lose what was acknowledged within the last second. Set nats.embedded.syncInterval to always to close that window, at a large throughput cost on every stream.

Kubernetes (Helm) syncs every 1 s too: the chart value is nats.config.jetstream.merge.sync_interval (default 1s). There every acknowledged write is already on two of the three NATS servers, so the one-second window applies only when two or more servers lose power at the same time. Keep the two settings aligned.

A buffer can still drop messages on purpose (its drop policy when the store is full, a retention age if you set one) or when the disk reaches its floor. None of these is silent: see Every loss is counted.

One buffer per output, not one big queue​

The buffer isn't a single shared queue. Every (pipeline, output node) pair gets its own buffer. This isolation matters:

  • A slow or down destination only fills its buffer. Other destinations keep delivering normally.
  • One destination can never reorder, starve, or block another's traffic.
  • The Buffers tab is simply the list of these per-output buffers.

Example: A pipeline writes to both MQTT and Postgres. Postgres goes down. The Postgres buffer fills up while the MQTT buffer keeps delivering; the slow destination is isolated to its own row.

Only writes are buffered: never reads​

Only write-type operations (publish, insert, call) are eligible for buffering. Reads and lookups never route through a buffer: buffering a read would hand the next step in your pipeline a "saved OK" acknowledgement instead of the actual query result, which would silently corrupt your data. MaestroHub enforces this automatically; there's nothing to configure.

Industrial connectors are not buffered, by decision​

Industrial and OT connectors (Modbus, Siemens S7, OPC UA, EtherNet/IP and similar machine protocols) do not take part in Store & Forward. This is a product decision, not a gap: a write to a machine is a setpoint or a command for the moment it was made, and delivering it minutes or hours later, after the machine came back, could act on a process that has moved on. A write to such a connection is tried directly; if the machine does not answer, the write fails and the run shows it. Store & Forward is for the writes that leave the plant floor: brokers, databases, cloud services and APIs.


See it in action: a database outage from start to finish​

The quickest way to understand Store & Forward is to watch it absorb a real outage. Take a simple pipeline that writes one quality-check record to a PostgreSQL table every few seconds, using the default Buffer only on failure mode.

1. Normal operation: nothing to see​

While the database is reachable, every record is written straight through. Rows land in the table, and the Buffers tab stays empty. This is the steady state: on the happy path Store & Forward adds no buffer and no overhead; there's simply nothing to show.

2. The destination goes down: a buffer appears and fills​

Now the database goes offline (a restart, a network blip, a maintenance window). The very next write can't reach it, so Store & Forward steps in: a buffer is created for that one (pipeline → output node) pair, and every following record is stored safely on disk instead of being lost. On the Buffers tab you can watch the buffer's pending count climb with each run while the destination stays down, yet the pipeline itself keeps reporting success, because the data is already durably captured.

Buffers tab during an outage, showing a buffer whose pending count is climbingBuffers tab during an outage, showing a buffer whose pending count is climbing

During the outage a buffer appears for the Store Readings write, and its waiting count climbs with every batch of ten readings. The pipeline keeps running; nothing is lost, the batches are waiting on disk.

3. The destination recovers: the buffer drains​

When the database comes back, the buffer delivers its backlog automatically, without anyone touching the pipeline. Delivery starts as soon as MaestroHub's connection to the database is up again: after a short blip that is at once, but after a long outage the connection retries at a slower pace, so it can take a few minutes for the next attempt to find the database back. The buffer's pending count then falls back to zero. An empty buffer stays listed for a while: it retires itself once it has stayed empty through a few of its periodic checks, typically 10 to 20 minutes after the backlog cleared.

Buffers tab after the connection is re-established, with the buffer drained back to zeroBuffers tab after the connection is re-established, with the buffer drained back to zero

PostgreSQL is back: the buffer has delivered every waiting batch and its count is zero again. The outage became a pause, not a loss.

The takeaway​

Count the rows in the destination table afterward and the records produced during the outage are all there; the outage shows up only as a brief delay in when they arrived, never as a gap in the data. The PostgreSQL connector declares that order matters (its Vector Upsert writes need it), so with the default Delivery order the output is set to In order and the buffer delivers in publish order; choose Any order on the node if the sequence of rows does not matter to you and you want the backlog to keep flowing past a refused row. That one round-trip (fill on failure, drain on recovery) is the whole promise of Store & Forward.


Choosing a mode (per output node)​

Each output node decides how it uses Store & Forward. You set this in the node's configuration panel in the Pipeline Designer, and it's chosen per node: different destinations in the same pipeline can use different modes.

Where to find it: any node that writes to a destination (publishing to a broker, inserting into a database, calling an API, sending to a cloud service, and so on) has a Delivery tab in its configuration panel in the Pipeline Designer. You won't see it on nodes that only read data or that don't talk to an outside destination, since those are never buffered. A write its connection cannot buffer (UDP, or syslog over UDP) keeps the tab, which then says why it is not buffered and what to use instead, in place of the choices.

At the top, the tab names the write's delivery promise: Effectively once, At least once or At most once, with what a copy carries. See Delivery promises for every connector.

The tab asks one question, "If the destination is down or refuses a record, what should happen?", and you answer by what the data is:

ChoiceForSets
Readings with timestampsSensor values, counters, telemetryBuffer only on failure, Any order
Commands and setpointsRecipes, setpoints, start and stopBuffer only on failure, In order, 30 s freshness
Ordered event streamBatch records, genealogy, audit eventsAlways buffer, In order
Best effortLive previews you can loseDo not buffer
CustomAny other mixthe mode, order and freshness controls described below

Under the choice, What this means says what happens to this output when the destination is down, when it refuses one record, on a good day, and to order. A note says so when your choice overrides the connector's own order. When a write declares that it loses its value past an age, Commands and setpoints is marked as recommended for that node; otherwise nothing is recommended, because MaestroHub cannot know what your data is.

If the choice delivers In order and the pipeline's Run order is Parallel, the tab says so and offers Switch to One at a time. The switch saves the pipeline's settings and reloads it, so it waits until you have saved any other changes on the canvas, and says why while it waits. A viewer who cannot edit the pipeline sees the choice and what it means, with the choices disabled and the reason given.

An output set to Do not buffer carries a small Not protected marker on the canvas, always, so it never looks like a protected one. While a buffer holds records, its node shows a blue Waiting pill that opens the buffer.

The Delivery tab of a write node: five choices by intent and what the choice meansThe Delivery tab of a write node: five choices by intent and what the choice means

The Delivery tab on a PostgreSQL write node: Ordered event stream is chosen, the strip under it says what that means for this output, and the pipeline's Parallel run order is flagged with its fix.

Custom shows the three settings the choices are made of. The first is the delivery mode:

ModeWhat it doesBest for
Buffer only on failure (default, on_failure)Tries the destination directly first. Only if the write fails does it save the message to a buffer and deliver it when the destination recovers. If the write is refused for good (a retry can never succeed: the destination rejected it, or the connector refused it before sending), the node fails instead and the message goes straight to Failed messages. Lowest latency on the happy path.Most cases. Command/control, low-volume state updates, anything where latency matters and you still want a safety net.
Always buffer (always)Every message goes through the buffer first and is delivered in the background. This fully decouples your pipeline's speed from the destination's speed.High-volume telemetry where you never want the pipeline to wait on the destination.
Do not buffer (off)Sends directly only. If the destination is down, the message is lost and the call fails.Best-effort telemetry where occasional loss is acceptable. Never use for billable or critical events.

If you don't choose anything, the node uses Buffer only on failure with the connector's default order.

Delivery order​

Under Custom, below the delivery modes, is a Delivery order option (hidden when Do not buffer is selected). It decides what happens to the messages behind one that the destination refuses:

OptionWhat it doesBest for
Connector defaultThe connector decides. Connectors that declare that order matters deliver In order; all others deliver in Any order. The option's label shows which one applies, for example Connector default (any order).Most cases.
In orderIf the destination refuses a message, nothing behind it is sent until an operator decides: retry, skip it, or move the backlog to Failed messages (see Failed messages). A newer value never overtakes an older one in the buffer.Setpoints and commands.
Any order (fastest)A refused message retries behind newer ones, and newer messages keep flowing. An older value can land after a newer one.Timestamped readings. Wrong for commands.

A connector's default is the strictest order any of its buffered writes declares: a connector with even one write that needs order (a message stream such as Kafka or Azure Event Hubs, a keyed store such as MongoDB or PostgreSQL, a TCP stream) delivers In order by default; connectors whose writes are all unordered, such as MQTT, REST, S3 and SAP IDoc, deliver in Any order. The node's Connector default label shows which one applies. Choosing Any order on a connector that asks for in-order delivery shows a warning.

If a connector's delivery order cannot be read (the connectors module is unreachable), its buffered writes run In order until it can: ordering can only cost throughput, while a wrong any order could reorder a destination that keeps the last write. The engine logs this once and retries the lookup by itself.

What In order promises, and what it does not. In order is about the output's own buffer:

  • Kept: the order in which the pipeline's runs handed values to this output. Through an outage of any length, retries, a refused message waiting for your decision, a restart and the drain after it, no value overtakes one handed over before it.
  • Not kept: the order of the runs themselves. With the pipeline's default Run order, Parallel, runs overlap, and a run that is slower than the next one (a busy host, a cold cache, a slow lookup) hands its value over second. The output then delivers it second.
  • Not kept: the order of an earlier pipeline. When the values come from another pipeline (for example an OPC UA trigger that publishes to the UNS, and this pipeline subscribes to the UNS), that pipeline's runs can swap two values before this pipeline ever sees them. This output's Delivery tab cannot see that pipeline's run order.

For values in input order from the source to the destination, set Run order to One at a time, in arrival order on every pipeline the values pass through, and In order on the output (see Output order). If you count a destination after an outage and a few values are out of input order while none is missing or duplicated, this is why: the runs handed them over in that order, and the buffer delivered them in the order it received them. In the customer-twin test of an OPC UA → UNS → Kafka chain (2026-11-09), a few dozen of up to 182,000 readings arrived out of input order with both pipelines on Parallel, also outside any outage, and none with both on One at a time.

Delivery order settingDelivery order setting

Custom on the Delivery tab: the delivery mode, the freshness and the delivery order. The connector default comes from the connector; for PostgreSQL it is in order, so the label reads Connector default (in order).

For the settings that keep readings in order hop by hop, from the source to the destination, see Keeping readings in order end to end.

note

After a failure in the default mode, that output keeps buffering subsequent messages (instead of trying directly again) until its buffer fully drains. This is deliberate: a direct write never overtakes messages still waiting in the buffer. The order in which the buffer delivers those messages follows the Delivery order above. The moment the last buffered message is delivered and nothing else is queued, the next write goes directly again, also while the pipeline keeps writing.

In this mode the direct attempt is bounded: a destination that has not answered within 2 seconds (modules.pipelineEngine.durability.directBudget) is treated as an outage, the write is buffered, and the pipeline goes on. A connection that MaestroHub already knows is down is not attempted at all: the write is buffered at once. So a cut costs the pipeline at most those 2 seconds, once, not the connector's own timeout. A connection takes a fixed number of writes at a time; a write that waits longer than the same 2 seconds for its turn (the connection is saturated) is buffered without being sent, so no copy of it reaches the destination. A write that gets its turn has the whole 2 seconds from then: under overload a write can wait up to 2 seconds for its turn and then up to 2 seconds for its answer. Order is guaranteed for the buffered delivery. The attempt still in flight when the budget ran out keeps running: the buffered copy's first send joins it instead of writing the write again, and is answered delivered once that attempt lands. For an In order output the attempt in flight is one request (one write, or up to 32 sent together, see below), and each of its writes is joined the same way. A destination slower than the budget therefore costs time, not copies (see Delivery promise).

An In order output set to Buffer only on failure has at most one request at the destination at a time per output per engine. While a request is at the destination, later writes for the same output wait behind it. When it returns, the writes that waited go together as the next request, in the order they arrived, if the connector can write a batch in order (today Kafka and InfluxDB; the drain of an In order buffer uses the same request). A request carries at most 32 writes. The destination writes nothing in it behind a write that fails. If a write fails, it is buffered first, and every write behind it is decided again in order: it joins the buffer behind the failed one, so none of them overtakes it at the start of an outage. A lone write is sent at once, so a quiet output gains no delay. The output's throughput therefore follows its write rate, up to about 32 writes per destination round trip. With a connector that cannot write a batch, the output sends one write per request: about one write per destination round trip (1 ÷ the destination's latency). Any order outputs are not limited this way, and with Always buffer no write waits on the destination.

A run that waits behind an earlier write to an In order output and reaches its own deadline fails without sending, with the code ORDERED_WRITE_NOT_SENT. Nothing reached the destination, and the write is kept in Failed messages with the reason Waited too long for its turn (ordered_wait_expired), so it is never lost uncounted; the run says where it is. The node's Retry on Fail does not send it again: a retry would deliver it after the writes that came behind it. Replay it from Failed messages if its value still matters (it then arrives after those writes). This happens when the earlier write does not finish, for example while the data volume stops finishing writes. If even the Failed-messages row cannot be written then, the write is counted under Lost messages as not kept.

Changing an output that has a buffer​

Saving a change to an output keeps its buffer taking writes, so an outage that starts right after the save is buffered like any other.

  • Delivery settings (the mode, the delivery order, the freshness) and where the output writes on the same connection (the topic, the function, the payload mapping): the buffer stays as it is. Every buffered message keeps the function and payload it was written with and is delivered that way; messages written after the save use the new ones. Order is kept.
  • Another connection: the messages already buffered belong to the old connection. A buffer with nothing in it is removed when you save, and the new connection's buffer is ready at once. A buffer that still holds messages shows Finishing delivery and delivers them to the old connection first. While it does, a write that would need buffering is kept in Failed messages with the reason. When the old buffer is empty it is removed and the new connection's buffer is made at once, without waiting for another save.

Delivery promise: at least once, effectively once by the write key​

Every write a pipeline buffers has a write key: its identity, the same on its first attempt, on every resend, on a replay from Failed messages (also after a Skip or a Move), after MaestroHub restarts and when the buffer moves to another replica. The write key is part of the promise, not an extra: it is how MaestroHub and the destination recognise a repeat of a write.

A buffered write gets one of two promises, depending on its destination. A write that is never buffered (UDP, or Do not buffer) has the third, at most once: see Delivery promises for all three and for writes that end sent, not confirmed.

  • Effectively once, within the destination's dedupe window. A destination that keeps the keys it has seen drops a repeat of a write itself. The window is the destination's own: a table that keeps the key with the data (Delta app ID, Iceberg snapshot property, Snowflake Streaming offset token) has none; an Azure Service Bus entity with duplicate detection keeps keys for its detection window (10 minutes by default); a write by natural key (an upsert, a put, a point with its time) writes the same row, item or point again, with no effect.
  • At least once, with at most one extra copy of a write that was on its way to the destination when MaestroHub crashed, restarted or moved the buffer to another replica. Every copy carries the write key. This is the promise for every other destination. A cut of the link costs no copy wherever the connection learns a write's real outcome after the call (Kafka) or the destination drops a repeat by its write key; otherwise at most one extra copy of each write that was on its way when the link was cut, however long the cut lasts.

However long an outage lasts and however often MaestroHub checks the connection, it adds no copies:

  • A write whose outcome is unknown (its call ended before the destination answered, after the write may have been sent) is never sent again on a timer. The buffer holds, asks the destination whether it answers without sending any data, and sends that write once more only when it does.
  • A send of a write whose earlier attempt is still running joins that attempt instead of writing it again; once that attempt lands, the send is answered delivered and sends nothing.
  • A check never carries data. A connection that cannot be checked without sending (a connectors build older than the engine, during a rolling upgrade) is held until it reports itself back.

An outage longer than a destination's dedupe window leaves that window no longer covering a repeat. What still holds then is the bound above: at most one extra copy of a write that was in flight at a crash, a restart or a replica move during the outage, never one per retry or per check.

Dropping repeats in a consumer. Keep the write keys you have processed and drop a record whose key you have already seen. A repeat arrives once the buffer delivers again after the restart or the move that caused it; if an outage was under way at the time, that can be as late as the end of the outage. Keep keys for at least your longest expected outage plus a restart. Where each connector puts the key, and which promise it gives, is in the table below.

What each connector promises​

DestinationPromiseThe write key
OneLake (Delta), Iceberg, Snowflake StreamingEffectively once, no windowKept by the table with the write (Delta app ID, snapshot property, offset token)
Writes by natural key: Cassandra, Couchbase upsert, DynamoDB put, Cosmos DB upsert, Bigtable, Timestream, InfluxDB, Prometheus, object and file stores in overwrite modeEffectively once: a repeat writes the same row, item, point or objectNot needed: the destination's own key
Azure Service Bus (entity with duplicate detection)Effectively once within the detection window (10 minutes by default); at least once past itThe message ID
KafkaAt least once, at most one extra copy per write in flight at a crash, restart or replica moveThe maestrohub.write-key record header
Every other connectorAt least once, at most one extra copy per write in flight at a crash, restart or replica moveSee the connector's page

When and how it delivers: retries, failed messages, and the brakes​

When a destination misbehaves, three mechanisms decide what happens next. Together they give every message a predictable landing place: delivered, failed, or paused for an operator. A message is dropped only by a rule described under Capacity, and every such drop is counted.

Retries: an outage is held, a bad message is counted​

Store & Forward tells two situations apart and treats them differently.

An outage is held for as long as it lasts and counts nothing. Nothing gets through to the destination, so no message is blamed and none is given up. The buffer keeps every message and retries with waits that grow from 1 second to at most 60 seconds, then delivers as soon as the destination takes writes again, however long that takes. While it holds, it finds out whether the destination is back by asking the running connection's own health check (its ping: for Kafka a metadata request), which sends no data; the buffer's next message goes out once the destination answers. A connection that cannot be checked this way is held until it reports itself back: no message is sent to find out. A message whose outcome is unknown, because its call ended before the destination answered, is held the same way and never sent again on a timer. So a long outage does not leave a copy of a message for every attempt to reach it. These count as an outage:

  • the connection is down or can't take writes right now: connection refused or reset, DNS or TLS failure, stopped, suspended, still connecting, reconnecting, or paused for workspace maintenance;
  • a partial outage: a proxy or load balancer answers but nothing behind it does, an HTTP 502, 503 or 504, a database failing over to a new primary, or a Kafka partition with no leader or not enough in-sync replicas;
  • a destination that answers nothing to anything.

Rate-limited answers (HTTP 429, a 503 with Retry-After, a vendor's throttling) wait as long as the destination asks before retrying, and are not counted either.

A bad message gets 10 counted rejections. A rejection is counted only when the destination answered this message with an error that a retry could fix (for example an HTTP 500 or a timeout) while the same connection delivered other messages in the same window: proof that the destination works and turns this one away. The waits between attempts grow from 1 second, doubling, to 60 seconds (each within 10 %), so 10 counted rejections take 4 to 12 minutes, plus the time each attempt takes to be answered. About 4 minutes (1 + 2 + 4 + 8 + 16 + 32 + 60 + 60 + 60 s) when other messages of the same buffer are delivered between the attempts. Up to about 12 minutes when the buffer holds only messages the destination refuses: every pass of that buffer that delivers nothing also pauses it, by the same doubling wait up to 60 seconds, and new messages are sent before retries, so its later attempts are a minute or more apart (in a test run with five refused records, they reached Failed messages 9 to 12 minutes after they were sent). An attempt made while nothing else on the connection lands is not counted and adds its wait too. After the 10th, the message goes to Failed messages (Any order) or the buffer becomes Blocked (In order); see below. The count is kept in memory: a restart gives the message a fresh count. An Any order buffer keeps the messages waiting for their next attempt in the engine's memory, up to 256 MiB of them across all buffers together; beyond that, a waiting message goes back to the message store for its wait and comes back when it is due. A destination that refuses everything therefore never grows the engine's memory with the backlog.

An In order buffer sends only the message at its front while that message is failing, so the evidence that the destination works has to come from other writes through the same connection: other buffers, or the outputs that write to it directly (with Buffer only on failure, every write that lands directly counts). When nothing else writes through its connection, a front message the destination keeps turning away with retryable errors cannot be told apart from an outage: it is held, retried at most every 60 seconds, and shown with a Blocked health badge and the destination's answer. It is never given up automatically.

A message refused for good (below) is not retried at all.

The Kafka connector has its own details for outages, including the copy a cut can create: see Kafka during an outage.

Failed messages (the triage inbox)​

Some messages can't be saved by retrying:

  • Permanent failures (shown as Refused for good): the destination says the request itself is wrong (for example HTTP 400, 403, 409, 413 or 422, a duplicate-key violation), schema/validation rejections, contract mismatches ("poison" data), and writes the connector refuses before sending anything, such as data that holds no rows.
  • Retry-exhausted messages (shown as Gave up after retries): 10 counted rejections, as above.
  • Outcome unknown messages (shown as Outcome unknown (possibly delivered)): nothing refused them, but no answer came. Either the destination answered its reachability check and never answered for this write within the attempt budget, or the buffer itself was sent the write and never confirmed that it took it. Such a message may already be at the destination. Check there before you replay it: a replay asks you to confirm (Replay anyway), because it can deliver the message twice. When an Any order buffer gives one up, the connection's open attempt for it is closed too, so your replay is sent rather than joined to that attempt.

These land in Failed messages (internally a dead-letter queue, or DLQ) with the failure reason attached.

A permanent failure on the first, direct attempt never enters the buffer at all: sending it again could only fail the same way (and would deliver a message twice where the destination did act on it). The output node fails with the reason, code CONNECTOR_REJECTED, and is not retried, so the run shows the problem instead of turning green. The reason is either the destination's own error or, when the connector refused before sending anything (for example a write whose data holds no rows), the connector's explanation, which says nothing was sent. The message goes straight to Failed messages: replay it once you fix the cause, or discard it when the message itself is the problem. A failure that a retry can fix (the destination is down, slow or throttling) is buffered and delivered later, exactly as above.

What happens to the messages queued behind one depends on the output's Delivery order:

  • Any order: the failed message is set aside here and delivery keeps flowing past it.
  • In order: nothing behind the refused message is sent. The buffer becomes Blocked and waits for an operator, who decides in one panel: Decide on the Overview, or Decide on the stuck record under the buffer's status (and in its ⋯ menu) on the Buffers tab. See Deciding on a stuck record.

Deciding on a stuck record​

The panel shows the record itself: its sequence, when it was written, how many attempts it had, its size, its write key, what the destination said, and the start of its payload. It then asks whether the next records will fail the same way. MaestroHub cannot check the waiting records against the refusal yet, so the panel says Not checked and recommends the choice that is right either way. Four choices follow, each with what the destination gets, what Failed messages gets, what happens to order, and what happens to the next record, before you confirm:

  • Fix the destination, then Retry (recommended for a record refused for good): make the destination accept the record, then Retry sends it and everything behind it, in order.
  • Move all N to Failed messages: the record and everything behind it go to Failed messages, oldest first, and the buffer becomes Held for review. New writes then go straight to the destination without a buffer (a write it refuses fails its run) until the buffer is removed with Discard buffered; it is empty after the move. Replay the moved records once the destination takes them: they land after the newer writes. A move never deletes a failed message already there.
  • Skip this one record: only the record at the front goes to Failed messages, with the reason you write (required; kept on the failed message and in the audit log), and delivery goes on with the next one. Use it only if this one record is the problem: if you replay it later, it lands after newer records. There is no skip of many records at once.
  • Retry now: sends the record again unchanged. For a record refused for good it fails the same way unless the destination changed; after retries ran out with the destination answering again, the panel recommends it.
The decision panel for a stuck record with Skip this one record picked and its outcome shownThe decision panel for a stuck record with Skip this one record picked and its outcome shown

Deciding on a stuck record: Skip is picked, so the panel shows what the destination and Failed messages get, warns that a later replay lands out of order, and asks for the reason before Confirm.

After Retry or Skip, the panel says delivery resumed only once the destination has taken a record (delivery restarts within about 15 seconds). If the record is refused again, you are back at the same choices, told so. A viewer without durability:write sees every choice and its outcome; Confirm is disabled with the reason, and Send to someone who can decide shares the card. On a phone the panel is a full page with Confirm kept in view at the bottom.

Skip and Move never delete anything. If what they would move does not fit under the buffer's Failed-messages cap, nothing moves and you are told the counts and the two ways out: raise the buffer's cap (its Buffer settings), or skip only the stuck message and replay or delete failed messages to make room for the rest. Skip and Move are offered only while an in-order buffer is blocked or held at its front message; a buffer that is delivering normally refuses them. With several engine replicas (on Kubernetes), they work the same from any replica: the replica that delivers the buffer carries them out, and every replica offers them for the same buffers. Every replica also shows the same health for a buffer, the one the replica that delivers it reports. If that replica stops reporting (it stopped, or lost the network), the others show the buffer as Stalled, saying which replica went quiet, since when, and what it said last, until it or the replica that takes the buffer over reports again.

The Failed messages tab groups them by cause, so 264 refused records read as a few problems with a few fixes. For each cause you can Replay 1 to test, then Replay the other N, or Discard the cause; single messages, or a selection of up to 100, can be replayed or discarded too. A replayed message goes back into its buffer and leaves the Failed messages list; if it fails again it comes back as a new entry that shows how many times it has been retried. A discarded message is gone; the audit log keeps the discard. See Failed messages.

Replay all of a buffer's failed messages​

On the Buffers tab, a buffer's ⋯ menu has Replay its failed messages. It replays every Failed message of that buffer, oldest first in the order the buffer held them, in the background: you can close the dialog and come back to its progress (replayed, skipped, failed, of the total).

  • It replays the messages that were Failed messages when it started. One that fails again comes back as a new entry and is not replayed again by the same run.
  • For an In order buffer it stops at the first message it cannot replay: one that needs an acknowledgement (a command held for being too old, unless you tick Deliver stale commands anyway; a message whose outcome is unknown, unless you tick the box for messages that may already have arrived), one replayed too often, one held by another replay, or one that fails to replay. Replaying the ones behind it would deliver them first. Deal with that message, then start again: the rest are still in Failed messages. For an Any order buffer, a message it cannot replay stays in Failed messages and the run goes on.
  • Only one replay runs per buffer at a time; you can cancel it, and what it already replayed stays replayed.
  • It is refused while the emergency pause is on, and a run stops if the pause is switched on while it runs.
  • A run interrupted by a restart of MaestroHub shows as Interrupted; start it again and it replays the rest.
The Replay failed messages dialog of a bufferThe Replay failed messages dialog of a buffer

Replay its failed messages, from a buffer’s ⋯ menu: every failed message of the buffer, oldest first in the order the buffer held them, in the background.

How long failed messages are kept​

Failed messages are kept for 30 days by default. Each buffer also keeps at most 10,000 failed messages by default. When a new failure arrives at a buffer whose failed messages are at the cap, the oldest is deleted to keep the newest, and every such drop is counted: in the buffer's Dropped column, as a notice on the Failed messages tab ("N older failed messages were dropped at the 10,000 cap"), and in the Overview's evidence as Failed messages over the cap.

To change the cap, open the buffer's ⋯ menu on the Buffers tab and choose Buffer settings: any whole number from 1 to 1,000,000, or Unlimited (failed messages then stay until replayed, deleted, or past their 30-day retention). The change takes effect without a restart. Each failed message keeps its full payload in the engine's database, so a large cap on a busy buffer uses disk there.

The Buffer settings dialog of a bufferThe Buffer settings dialog of a buffer

Buffer settings, from a buffer’s ⋯ menu: what it does when full, and how many failed messages it keeps, from 1 to 1,000,000, or Unlimited.

Messages that are moved here, rather than failing on their own, never push older failed messages out: an operator's Skip or Move, a buffer whose source has been missing past its orphan window, and the rescue when a buffer is removed. What does not fit under the cap stays in the buffer. A buffer past its orphan window whose backlog does not fit stays Source missing, its delivery health says how many messages wait and how much room to make, and the rest moves as soon as there is room.

When messages are moved here automatically, or a buffer becomes stalled, blocked or starved, MaestroHub sends a Delivery health notification, which you can route to Slack, Teams or a webhook on the Notifications page.

Failed messages tab with replay and delete actionsFailed messages tab with replay and delete actions

Failed messages after a migration made a column mandatory during an outage: each batch the database refused is here once, marked permanent, with the database's own error. Fix the cause, then replay them.

Kafka during an outage​

A Kafka write never holds its caller for the length of an outage: in the default mode it answers within the 2-second direct budget above, and a write the brokers did not take in that time is treated as an outage and buffered. MaestroHub checks a Kafka connection every second while it is connected, so a cut is noticed in about two seconds; from then on writes are buffered without being attempted. A record that was already on the wire when the cut began may still be written by the brokers once the link returns. While it is out, the connection sends that write no second time: a resend of it waits for that record's outcome (and the outage probes send no writes at all, above), so a long outage does not pile up copies of one write. If the record lands, the resend is answered delivered and sends nothing; if it fails, the write is sent again. A reconnect keeps the connection's producer, so the brokers recognise its own retries of a record. Through a cut, probes and reconnects each write is therefore delivered once. What remains is the at-least-once window where the connection cannot know about the first record: a record still on its way when MaestroHub restarts, when the connection is disconnected or edited, and, on Kubernetes, when the connection moves to another replica: at most one extra copy of each.

Every record a pipeline writes carries the header maestrohub.write-key: the write's identity, the same on the direct attempt and on every resend of that write. A consumer that must not see a copy twice can drop records whose write key it has already processed. A resent record also carries maestrohub.produced-at, the time its data was produced, so the original time survives a topic that overwrites record timestamps. See the Kafka connector for its delivery settings.

The brakes​

When you need to intervene, you have manual controls:

Per buffer: The names below are exactly what a buffer's ⋯ menu on the Buffers tab shows (the technical name, as in the audit log, is in parentheses).

  • Pause intake (pause): stop accepting new messages into this buffer; keep delivering what's already queued.
  • Pause and hold (pause, hold): stop accepting new messages and deliver nothing until you choose Resume.
  • Finish delivery and remove (drain): stop accepting new messages, deliver the backlog, then remove the buffer. Its status reads Finishing delivery meanwhile.
  • Discard buffered (purge): drop every message still in the buffer and remove it; the messages never reach the destination. Offered once a buffer is Finishing delivery, Blocked, Source missing or Held for review. To discard a delivering buffer, choose Finish delivery and remove first.
  • Move to Failed messages (route to failed messages): move every queued message to Failed messages, where you can replay each one; the buffer becomes Held for review. Offered in the menu once a buffer is Finishing delivery or Source missing. For a buffer held at a record (Blocked, or an In order buffer held at its front message), Retry, Skip and Move are in the decision panel, each with its outcome shown first.

While a buffer is paused, a write that would have gone into it is kept in Failed messages with the reason Buffer was paused, and the node fails with WRITE_KEPT_IN_FAILED_MESSAGES, saying the buffer is paused and where the write is. Resume the buffer, then replay those messages. The Overview's evidence counts them, kept in Failed messages, as Buffer was paused.

While a buffer waits for its destination. During an outage the buffer's status reads Waiting: destination unreachable, and its health reads Waiting: destination down (the connection is down) or Waiting: destination takes nothing (the connection is up but nothing it sends gets through). Nothing needs doing: the buffer delivers by itself once the destination is back. Its entry Held records: what you can do opens the same panel, which says nothing was refused: Skip is disabled with why (every record is waiting and the one at the front is not at fault), and Move is offered for when the destination will not take this stream as it is. When the destination takes the connection but delivers nothing, the panel treats the front record as possibly at fault and offers Skip, as the backend allows it. Each choice that is not offered says why.

Instance-wide:

  • Emergency pause (the kill switch): stops all new buffering across the instance, in every workspace, while letting already-queued messages continue draining. Use it when a destination is making things worse and you need everything to stop accepting new writes immediately. Switching it on asks for a reason; every toggle is recorded with its reason, who and when, and replaying failed messages is blocked until you resume.
The instance card on the Overview with the emergency pause onThe instance card on the Overview with the emergency pause on

The Overview's instance card while the emergency pause is on: a status line, not a button. The control is on Store & Forward capacity under System Management, for platform administrators.

info

Every state change a buffer goes through is audited. You can always see who paused, finished, discarded, or resumed a buffer, and when. (See Where to see what happened below.)

When Store & Forward itself can't buffer​

Sometimes the safety net itself can't take a write into a buffer. If this happens, the Overview says so in its answer, and its evidence lists the causes of the last hour. A write that was kept in Failed messages is listed under "Could not be buffered in the last hour, kept in Failed messages", and the answer asks you to replay it (orange). A write that was not kept is counted under Losing data? (red). For each cause:

Cause shownWhat it meansWhere the payloads areWhat to do
Capacity exhaustedBuffers ran out of room.In Failed messages.Raise the capacity pool or the workspace quota (a platform administrator, on Store & Forward capacity), then replay.
Rejected: buffer fullA write joined a full buffer whose drop policy is Reject new, and was refused, as the policy asks.Not kept: the run that made it failed. Each one is counted in the Overview's evidence.Give the buffer a guarantee or more pool, or switch its drop policy to Dead-letter new to keep such writes. A write whose direct attempt had already failed is never refused this way: it is kept, under Capacity exhausted.
Message too large for its bufferThe write is larger than its buffer can ever hold (the capacity pool, or the workspace quota). Nothing already buffered was dropped for it.In Failed messages.Raise the pool or the quota, or have the pipeline write smaller messages, then replay.
Disk at its floorThe data volume reached its free-space floor, so buffering stopped to keep the disk from filling.Not kept: a Failed-messages entry would use the disk being protected. Each one is counted.Free disk space. Buffering resumes by itself above the floor.
Could not be keptThe write could not be buffered, and writing it to Failed messages failed too (the engine database refused).Not kept: the payload was not preserved, and the run that made it failed. Each one is counted.Check the engine database (disk, locks, connection), then re-run the affected runs from their source.
Store has no room for a bufferThe message store refused to create a buffer because its other streams take all of its space.In Failed messages.Free disk on the store's volume (its size follows the disk at the next restart), then replay.
Broker errorThe buffer broker (NATS JetStream) could not create the buffer or accept the write.In Failed messages.Check the broker's health and logs, then replay.
Buffer plumbing unavailableA required Store & Forward component was not wired or refused service.In Failed messages.Check the engine startup log, then replay.
Internal errorThe engine could not buffer the writes for a reason it could not classify.In Failed messages.Look for durability: substrate queue op failed in the engine log.
Buffer retiringThe output's buffer was mid-drain and refused new writes.In Failed messages.Replay if it matters.
Emergency pause activeThe emergency pause refused the writes.In Failed messages.Expected while the pause is on; a platform administrator resumes it on Store & Forward capacity, then replay.
Buffer pausedAn operator paused the buffer the writes were for.In Failed messages.Resume the buffer from the Buffers tab, then replay.

Disk at its floor, Could not be kept and Rejected: buffer full are the causes where a payload is not kept; each is also counted in the Overview's evidence (see Every loss is counted). Every other cause keeps the payload in Failed messages. On a healthy system none of this appears.

A write kept in Failed messages this way is settled there: the node fails once with WRITE_KEPT_IN_FAILED_MESSAGES, and the node's Retry on Fail does not send it again, because a retry would write it twice and out of order. Replay or discard it from Failed messages.


Capacity: where the buffers' space comes from​

All buffers draw from one instance-wide disk pool. You don't have to size each buffer by hand; most of this is automatic, and there's only one number most operators ever touch.

The instance-wide pool (the one number you control)​

There's a single total disk budget shared by every buffer on the instance, in every workspace. Until someone sets it, it is 80% of the message store's room, read once at startup:

  • On a single node (the embedded store), the room is the free disk above the disk floor on the store's volume. A 1 TB disk with about 950 GB free gives a pool of about 760 GB.
  • On Kubernetes (Helm) or with an external NATS, the room is the NATS file-store size (nats.config.jetstream.fileStore.maxSize, or engine.durability.storeLimitBytes for an external NATS) less what the store's other streams claim. It is never the engine pod's own disk.
  • If the store's room cannot be read, the pool is 50 GiB, and the startup log and the capacity page say so.

The pool is never set below what the buffers already hold when the engine starts, so a restart never makes them drop messages. A total set by a platform administrator, or modules.pipelineEngine.durability.defaultTotalBytes in the configuration, always wins over the default. The capacity page says where the number came from, for example "760 GB pool, 80% of the free disk on /data/nats/jetstream" or "set by an administrator".

A platform administrator can change it any time on Store & Forward capacity; Show room on the Overview draws how much of it buffers hold now, and what limits it. For most installations the default is right and you'll never need to change it. To work out what your outages need, see Sizing and protecting the buffer disk.

The pool can never be larger than what the message store can give the buffers. On a single node, the room buffers may use also follows the disk: it is the free space above the disk floor, less what the store's other streams (audit, events, executions, telemetry) need, so a disk filled by something else shrinks it. On Kubernetes (Helm), the chart gives the engine the NATS servers' file-store size from nats.config.jetstream.fileStore.maxSize, so the two cannot differ (with an external NATS, set engine.durability.storeLimitBytes to its servers' size). The chart also refuses a maxSize above 75 % of the NATS volume (pvc.size).

Buffers reserve nothing: they share the pool by what they hold​

You do not assign a size to a buffer, and a new buffer takes no space up front. Every buffer uses only the space its messages actually take, and gives it back as they are delivered. Any number of buffers fits in the pool; what has to fit is what they hold together.

While the pool has room, any buffer may grow as large as it needs: one destination down for a long time can use far more than its everyday footprint. Only when the pool runs short does each buffer's share matter: its guarantee (below) plus an equal part of the free room for each workspace whose buffers are filling, divided among that workspace's filling buffers. So one workspace with many buffers cannot squeeze out another workspace's few. The Room column on the Buffers tab shows how long the buffer can keep taking writes at its current write rate before it reaches its share, then its share and what it holds now.

Optional: guarantee space for a critical destination​

By default no buffer has a guarantee; they share the pool equally. If you have a destination you never want to be squeezed during a busy outage, give its buffer a guarantee: space it can always use, even when other buffers are full. A guarantee is granted only within what the message store can really give the buffers (the pool, less what the store's other streams need), so the guarantees together never promise more than the store holds. No other buffer's writes ever evict a buffer's messages from within its guarantee. Set it per buffer in Buffer settings, on the Buffers tab, only for the destinations that matter most.

The rest is shared "burst" room​

Space that no buffer holds and no guarantee promises is burst room. Any buffer can fill it. When it runs out, buffers above their share give back their oldest messages first (see below). There is nothing to set.

Optional: per-workspace quota (several workspaces on one instance)​

If several workspaces share one MaestroHub instance, a platform administrator can cap how much of the pool a single workspace's buffers may hold. A platform administrator edits or clears each workspace's quota on Store & Forward capacity; a workspace's members see their quota on the Outage readiness tab. With no quota set, a workspace is bounded only by the pool. When a workspace reaches its quota, its own buffers' drop policies decide what happens, inside that workspace; buffers of other workspaces are never touched. Most instances with a single workspace never need this.

Store & Forward capacity: the data volume, quotas and the instance controlsStore & Forward capacity: the data volume, quotas and the instance controls

System Management, Store & Forward capacity: the data volume to scale, each workspace's quota against what it holds, the largest holders, and the instance controls.

What happens when the pool fills up​

An outage alone drops nothing: a buffer holds its messages until the destination is back, as long as the pool has room. When a write arrives and the pool has no free room left:

  1. A write within the writing buffer's guarantee always fits.
  2. If the write keeps the writing buffer within its share, Drop oldest buffers that hold more than their share give back their oldest messages, the one furthest over its share first, never below its share and so never into its guarantee.
  3. Buffers whose policy is Reject new or Dead-letter new are never evicted by another buffer's write: what they buffered stays. Because their messages cannot be given back, such a buffer never grows past its guarantee plus an equal part of the free room for each workspace that has buffers, divided among its workspace's buffers; past that its policy refuses the write, even while the pool has room.
  4. A replay from Failed messages never evicts anything: it goes into free room or the buffer's guarantee, or it is refused with how much room it lacks and stays in Failed messages.
  5. If there is still not enough room, the writing buffer's own drop policy decides:
Drop policyBehavior
Drop oldest (default)Evict this buffer's oldest messages to make room for the new one.
Reject newRefuse the new message; under Buffer only on failure the write fails and is not kept.
Dead-letter newSend the new message straight to Failed messages instead of buffering it.

To choose a buffer's drop policy, open its ⋯ menu on the Buffers tab, choose Buffer settings, and pick one under When the buffer is full; each choice is explained there in one line. The change takes effect without a restart and is recorded in the audit log. Changing it needs durability:write, the same as the buffer's other settings; the API route is PATCH /api/v1/engine/durability/bindings/{pipelineId}/{outputNodeId}/drop-policy with {"dropPolicy": "drop_oldest" | "reject_new" | "dead_letter_new"}, which changes the drop policy and nothing else. A buffer whose policy sends evicted messages to Failed messages cannot use Drop oldest (it would delete them without keeping them), so that choice is disabled there, with the reason.

A message larger than its buffer can ever hold (the whole pool, or its workspace's quota) is refused before anything is evicted for it: it goes to Failed messages with the reason Too large for its buffer, and the backlog stays.

Known limit: a NATS cluster whose every store is full (Kubernetes)

On Kubernetes the buffers live in a cluster of NATS servers, each buffer on three of them. If the message store of every server in the cluster reaches its cap, the cluster stops answering requests about its streams: no new buffer can be created, and the Store & Forward pages cannot read the buffers' state, until space is freed (messages delivered, buffers removed, or the cap raised). Writes are not left hanging: each one is refused at once with the buffer is full and handled by the buffer's drop policy, as above.

It does not happen in a correctly sized installation, for two reasons. The pool above is the engine's own budget, and it is never larger than what the servers' stores can hold (the servers' fileStore.maxSize, which the chart hands to the engine), so the engine refuses or evicts by its drop policies before a server store fills. And the Helm chart gives every server the same cap and refuses a cap above 75 % of the server's volume, so no server's disk fills before its cap does, and no single server runs out of room while the others still have it. A single server whose store fills before the others' (a lower cap set by hand outside the chart, or its disk filled by something else) costs the buffers it serves their third copy: where it only holds a copy, or its disk filled and another server took over the buffer, the other two keep accepting writes; where its own lower cap is reached while it leads a buffer, that buffer's writes are refused as full, at once, until space is freed there.

Every loss is counted​

Every message a buffer drops is counted, from the first one, and the counts are kept across restarts:

What was droppedWhere you see it
Messages evicted when the pool was full (Drop oldest)The buffer's Dropped column (Lost), and the Overview's evidence for Losing data? as Evicted at capacity. While a buffer evicts, the Overview leads with it in red.
Messages older than a retention age, when the buffer has one setThe buffer's Dropped column (Lost), and the Overview's evidence as Expired by retention.
Older failed messages deleted at the buffer's Failed-messages capThe buffer's Dropped column, a notice on the Failed messages tab, the Overview's evidence as Failed messages over the cap, and the metric saf_dlq_evictions_total.
Writes refused at the disk floorThe Overview's evidence as Not kept: disk at its floor for the last hour, and its answer in red (see When Store & Forward itself can't buffer), and Lost executions on the Pipelines page as Refused at the disk floor.
Writes refused by a full Reject new bufferThe buffer's Dropped column, and the Overview's evidence as Rejected: buffer full.
Writes that could be neither buffered nor written to Failed messagesThe Overview's evidence as Could not be kept (under its output even when no buffer existed yet).
Failed messages removed by their retention (30 days unless the buffer's policy sets another)The buffer's Dropped column (from Failed messages), and the Overview's evidence as Failed messages past their retention.

A write kept in Failed messages is not a loss and is not counted here: it is on the Failed messages tab, ready to replay.

The retention clean-ups (failed messages, the activity log, this loss evidence) follow the system clock. If that clock jumps forward by more than 10 minutes (an edge device whose clock was wrong and is corrected), they wait 24 hours before deleting anything, and the engine log says so, so a clock set wrongly into the future does not delete a month of failed messages at once. Fix the clock within that time if the jump was wrong.

The Dropped column covers the last 90 days; the Overview's evidence counts the last 24 hours by reason (the disk-floor and could-not-be-kept rows the last hour), and shows its zeros too. After an unclean stop of MaestroHub (a crash or kill -9), messages that left a buffer since its last saved reading cannot be split into delivered and lost; the engine reports them in its log instead of guessing. A reading is saved at once whenever a loss is counted, and otherwise at least once a minute, so this covers at most the last minute before the stop.

Retention: messages are kept until delivered​

A new buffer has no retention age: it keeps every message until it is delivered, however long the outage lasts. Buffers created by an earlier version with its default of 24 hours are moved to keep-until-delivered once, by upgrade apply, which lists each one it changes in its report. A retention you set afterwards, 24 hours included, is never changed again. A buffer can still be given a retention age through its policy; messages older than that are dropped and counted, as above. Any retention age you set is applied, including one shorter than 10 minutes.


Outages: the record, the warnings and the alerts​

One record per outage​

From the first failed write until everything is delivered, each buffer keeps one outage record. The buffers of one connection that are cut at the same time form one outage. The record counts, from the buffer itself and not from screen refreshes:

NumberMeaning
HeldMessages that entered the buffer during the outage
DeliveredMessages the destination took from the buffer
In Failed messagesMessages moved to Failed messages (refused, retries used up, skipped, moved)
LostMessages dropped, by reason (the same numbers as Every loss is counted above)
WaitingMessages still in the buffer
Possible duplicatesMessages delivered whose earlier attempt may have reached the destination (it timed out). Listed by their maestrohub.write-key, so you can check them at the destination.

These always add up: held = delivered + sent, not confirmed + in Failed messages + lost + waiting. Sent, not confirmed counts records sent over a protocol with no acknowledgement (raw TCP, syslog over TLS or TCP): never sent again, never called delivered (see Delivery promises). When a part of an outage was not counted (MaestroHub stopped uncleanly while it ran), the record shows the gap and says so, instead of hiding it.

The record also keeps the longest time the pipeline waited for a failed write before buffering it (the start stall), when delivery resumed, how fast the backlog was delivered, and a chart of the backlog at a resolution that stays the same size however long the outage lasts.

Every outage has a report: see Outage reports. You can export it (JSON, CSV or the write-key manifest). Each file carries a SHA-256 digest of its contents (Content-Digest and X-MaestroHub-Report-SHA256 headers, and an integrity block inside the JSON), so anyone can check that a copy was not edited, and MaestroHub serves the same file every time for an outage that has ended, so you can compare a copy with the record.

Running out of room​

While a buffer holds an outage, MaestroHub watches how much room it has left at the current write rate. Under 1 hour of room the buffer is marked Running out of room (amber); under 15 minutes it turns red. Each crossing sends one Action needed notification with the clock time the room runs out at that rate. Change the thresholds in the engine configuration:

engine:
durability:
roomWarning:
amber: 1h
red: 15m

Notifications by severity​

Every Store & Forward notification starts with what it means, so it still reads right on a lock screen:

Title starts withSeverityWhenReaches
No data lost: (None lost before sending: when records were only sent, not confirmed)infoAn outage that holds everything, once it has lasted 5 minutes (modules.pipelineEngine.durability.outageInfoAfter), and one summary when it has deliveredOnly channels set to receive info, such as a team chat channel. Never a push or a page.
Action needed:warningA decision is waiting: a message the destination refuses holds an in-order buffer, messages moved to Failed messages, room under a threshold, a stalled bufferChannels set to warning and above
Data loss:criticalData was droppedEvery channel, including pages
Drill:infoA drill's start and end onlyNever pages on call

A short outage that recovers by itself sends only the summary when it has delivered. Each notification names the workspace and the instance, and the notifications of one outage share its id (outage:<id> as the subject), so a webhook receiver can thread them. Slack and Teams incoming webhooks cannot thread or edit a message; they receive each one.

Every Action needed: and Data loss: notification ends with the workspace's on-call contact and runbooks when one is set. Set it, and see which kinds each channel receives, on Notifications.

Heartbeat and alerts​

The engine publishes saf_engine_heartbeat_timestamp_seconds after every completed reading of its buffers (once a second). The Helm chart's engine exports its metrics under the maestrohub namespace, so Prometheus scrapes it as maestrohub_saf_engine_heartbeat_timestamp_seconds, the name the alerts read. When it stops, nobody is counting what the buffers do, and the Store & Forward pages show Not current. The Helm chart ships these alert rules (in the maestrohub.store-and-forward group of its PrometheusRule):

AlertFires when
MaestroHubSAFHeartbeatMissingNo engine has published the heartbeat for 2 minutes
MaestroHubSAFHeartbeatStaleAn engine's last reading is more than 60 s old, for 2 minutes
MaestroHubSAFDataLossAny message was dropped in the last 5 minutes
MaestroHubSAFRunningOutOfRoomA buffer in an outage is under the red room threshold
MaestroHubSAFLedgerOpenAn open outage's numbers have not added up for 15 minutes

Fleet Manager shows each instance's last store-and-forward heartbeat (last_delivery_heartbeat_at) next to its last heartbeat: a heartbeat that keeps arriving while this time stands still means the instance is up but not counting its buffers.

Every number on the Store & Forward pages is also a Prometheus metric: saf_writes_total and saf_delivered_total (by path), saf_moved_to_failed_total, saf_sent_unconfirmed_total (writes handed to a destination whose protocol cannot acknowledge them: plain TCP, syslog over TCP), saf_loss_total, saf_possible_duplicates_total, saf_outages_open, saf_episodes_open, saf_waiting_messages, saf_room_level_buffers, saf_room_min_seconds and saf_ledger_unaccounted_messages. They are labelled by workspace only, never per buffer. In the Helm chart each is scraped with the maestrohub_ prefix (for example maestrohub_saf_loss_total).


The four tabs at a glance​

TabWhat it's for
Overview"Am I losing data?" answered first, worst first, with four answers in fixed slots (losing data, waiting, how long it holds, need to act), the evidence under them, the buffers that need attention worst first, and the instance's emergency pause and restart lines. See What the Overview answers.
Failed messagesThe triage inbox, grouped by cause: replay one to test, then the rest, or discard a cause. See Failed messages.
BuffersEvery per-output buffer with its depth (pending messages/bytes), age of the oldest message, drain rate, Room (how long it holds at its current write rate, its share, what it holds), Dropped (what it lost in the last 90 days), and per-buffer actions in its ⋯ menu (peek, Buffer settings, replay its failed messages, pause, finish delivery and remove, discard buffered, move to Failed messages).
Outage readinessForecast how long this workspace holds out if a destination goes down, see the limits that decide the room, and review the recent Activity (audit) log. See Outage readiness. The disk pool, the quotas and the emergency pause are on Store & Forward capacity under System Management.
Who can make changes

Viewing every tab is open to anyone with access to the page. A message's payload, in Failed messages and in a buffer's queued messages, is its pipeline's data: it is shown to those who may read that pipeline, and others see everything else about the message with a note that the payload is hidden. Free-text reasons (a skip, a cap change, a policy change, the emergency pause) are at most 1 KiB. Making changes to buffers (pausing, finishing or discarding a buffer, replaying, skipping, moving, guarantees and the Failed-messages cap) requires the durability:write permission in the workspace. The controls that act on the whole instance, the capacity pool's total, the emergency pause and every workspace's quota (your own workspace's included: a workspace raising its own quota would defeat the fairness cap), are a platform administrator's (permission durability_settings:update), on System Management → Store & Forward capacity: a workspace role cannot shrink the pool other workspaces' buffers live in or stop their intake. A control you may not use is shown disabled and says what it needs: a buffer's ⋯ button, the Replay and Discard buttons of a failed message, and the Store & Forward capacity controls. You can still see the full picture and the activity log. A pool smaller than 64 MiB is refused, and one smaller than what the buffers hold now is refused unless it is forced.


Buffer states and what they mean​

The Status a buffer shows on the Buffers tab is the same chip the Overview lists, in the same words and colours: blue held safely, orange a decision for you, green delivering, red data that is gone or about to be, grey context. One chip folds the buffer's lifecycle state, its health and its room together; the line under it says why. The technical state is in parentheses.

Status (UI label)Meaning
Delivering (active)Accepting and delivering messages normally.
Waiting: destination unreachable (active, destination down or taking nothing)Blue. The destination is down, or takes the connection but delivers nothing. Messages are kept and delivered once it is back. Nothing needs doing.
Catching up (active)Blue. The destination is back and the backlog is draining; the line under it says at what rate and how long is left.
Running out of roomOrange under 1 hour of room at the current write rate, red under 15 minutes, with the clock time it runs out. Then the oldest messages are dropped, or new writes refused, as the buffer's drop policy says. The thresholds are set in modules.pipelineEngine.durability.roomWarning (amber: 1h, red: 15m).
Dropping oldestRed. The room is full and the buffer gives back its oldest messages, each counted.
Not kept: disk at its floorRed. New writes fail and are not kept until disk space is freed.
Blocked: needs a decision (blocked)Orange. The buffer delivers In order and the message at the front could not be delivered: refused for good, or 10 counted rejections. Nothing behind it is sent until you choose in the decision panel. New messages still queue behind it.
Source missing: needs a decision (orphaned)Orange. The pipeline or connection was deleted. The buffer isn't silently discarded; it's parked for a day so you can recover or discard it.
Held for review (dead-letter)Orange. Its messages were moved to Failed messages. New writes go straight to the destination, without a buffer, until it is removed.
Stalled: not deliveringOrange. Messages wait and the destination works, but nothing delivers them: an engine fault.
Paused (paused)Grey. You stopped this buffer from accepting new messages. With Pause intake the queued backlog keeps delivering; with Pause and hold nothing delivers until you resume.
Finishing delivery (draining)Grey. No longer accepting new messages, delivering what's queued, then the buffer goes away.
No input arrivingGrey. The connection the pipeline reads from is unhealthy, so nothing new arrives.
MeasuringGrey. Not sampled yet: a buffer is measured every 30 seconds, so this takes up to about a minute.

The Waiting count is blue (held), and Room gives the clock time at every level, red or orange as above.

Health (operational hints)​

Separate from the lifecycle state, a healthy buffer can still be operationally stuck. When available, the Buffers tab shows a Health badge: click it for the reason, when it started, the last successful delivery, and when it was sampled. Health is sampled every 30 seconds, so a badge can trail what happened by up to about 40 seconds (the sample plus the page's 10-second refresh): Blocked can stay for that long after a backlog has been delivered.

Health (UI label)Meaning
HealthyMessages flowing: delivery completed recently.
IdleNothing queued and the destination is fine: a quiet topic, no action needed.
BlockedBlue during an outage, orange when an In order buffer is held at a message or the engine is stalled. Messages are queued but nothing is being delivered, and the reason says why: the destination connection is down or was deleted, the destination takes calls but delivers nothing (an outage, including a partial one), or an In order buffer is held at a message it could not deliver. During an outage this is the badge you see. Fix what the reason names; the buffer delivers by itself once the destination takes writes again.
StalledMessages are queued and the destination works, but the engine is not delivering them. This points at a fault in the engine, not the destination: collect the engine logs and escalate.
No input (starved)Nothing is arriving from upstream. The upstream connection is likely unhealthy.
Measuring… (unknown)No health sample of this buffer yet. Health is sampled every 30 seconds and the page refreshes every 10, so a new buffer can show this for up to about a minute; its Status and Waiting columns are live meanwhile.

Where to see what happened: the activity log​

Every consequential action is recorded: each emergency-pause flip, capacity edit, buffer state change, and Failed-messages deletion. The Outage readiness tab has an Activity card showing the most recent events (when, who (the actor), the action, the result (success / denied / failed), and details), with a View full audit log link for the complete history. This is read-only and visible to everyone, so anyone can see what changed without needing write access.


Edge cases worth knowing​

  • MaestroHub restarts during an outage. Buffered messages are on disk; they're still there after the restart and delivery resumes automatically. A crash (kill -9) loses no write that was reported buffered; a power loss can lose what was acknowledged within the last second (see Buffers live on disk).
  • An outage lasts hours or days. Nothing is given up and nothing is counted against the messages: the buffer holds until the destination is back, as long as the pool has room. The Room column says how long that is at the current write rate.
  • A proxy is up but nothing behind it answers, or the destination returns 502/503/504. This is treated as an outage: held, not counted.
  • You stop or suspend the destination connection. Writes keep being buffered and none are sent or failed while it's stopped; they're delivered when you start or resume it.
  • MaestroHub restarts, or a connection is disconnected, edited or moved to another replica, while a write is on its way. That write can arrive twice: once from the attempt that was on its way, once from the buffer's resend. Both copies carry the same write key (see Delivery promise). A cut alone, however long, costs no copy wherever the connection learns a write's real outcome (Kafka) or the destination drops a repeat by its write key; otherwise at most one extra copy of each write that was on its way when the link was cut.
  • A poison message in the middle of the queue. With Any order, it's moved to Failed messages and good traffic behind it keeps delivering; fix the cause, then replay it. With In order, the buffer becomes Blocked and nothing behind the message is sent until you decide in the decision panel.
  • The destination is rate-limiting you. MaestroHub honors the requested delay instead of hammering the destination or wasting retry attempts.
  • A pipeline or connection is deleted while its buffer still has messages. The buffer becomes Orphaned and is kept for a day so the data isn't lost by accident; recover it, move it to Failed messages, or discard it deliberately.
  • The pool fills up. Buffers above their share give back their oldest messages first, then the writing buffer's drop policy decides (drop oldest / reject new / dead-letter new). Every drop is counted and shown (see Every loss is counted).
  • One message is larger than its buffer can ever hold. It goes to Failed messages as Too large for its buffer; nothing already buffered is evicted for it.
  • The disk reaches its floor. Buffering stops and those writes are not kept, so the disk does not fill; the Overview leads with it in red and counts them as Not kept: disk at its floor, and they are under Lost executions on the Pipelines page. Buffering resumes by itself once there is free space above the floor.
  • Emergency pause is on and you try to replay failed messages. Replays are blocked until you resume, so you don't reintroduce traffic into a system you just told to stop.
  • You pick "Do not buffer" (off). There's no safety net: a write to a down destination is lost and the call fails. Reserve this for best-effort telemetry only.
  • Reads are never buffered. Even in "Always buffer" mode, lookups/reads always go directly to the destination so downstream steps get the real result.
  • A replay was interrupted by a crash. If the engine crashed mid-retry, the message may have reached the destination or may not. The detail view flags this: check the destination before retrying again. Retrying within 10 minutes of the interrupted attempt never queues a second copy; after that, a blind retry can create a duplicate.
  • A message was retried too many times. Further automatic retries are blocked to avoid loops; the entry is flagged in Failed messages. Fix the root cause and retry deliberately, or delete it.
  • Someone else is already replaying an entry. While a replay is in progress the Retry button is disabled for that entry; if it appears stuck for more than a few minutes, it clears on the next engine restart.
  • Bulk retry / delete in Failed messages. Bulk actions handle up to 100 entries per request; select fewer if you have more, and repeat. The result is summarized (replayed / skipped / failed). To replay all of one buffer's failed messages, use Replay its failed messages on the Buffers tab instead (see Replay all of a buffer's failed messages).
  • A buffer's queue disappears behind it (deleted on the message store by hand, or lost with a node). The next write re-creates it at once and is buffered; whatever the lost queue held is gone. The engine logs this once.
  • Store & Forward couldn't buffer at all. See When Store & Forward itself can't buffer: the Overview's evidence names the cause and says where the payloads are.

Defaults reference​

SettingDefault
Mode (per output node)Buffer only on failure (on_failure)
Delivery order (per output node)Connector default
StorageOn disk (survives restarts)
Sync to diskEvery 1 s (nats.embedded.syncInterval; Helm: nats.config.jetstream.merge.sync_interval)
Instance-wide disk pool80% of the store's room, read at startup (50 GiB if it cannot be read)
Space reserved per bufferNone: buffers share the pool by what they hold
Per-buffer guaranteeNone (0, optional, set per buffer)
Buffer retentionNone: kept until delivered
OutageHeld until the destination is back; no attempt counted
Counted rejections before a message is given up10, with waits from 1 s doubling to 60 s
Failed-message retention30 days
Failed-message cap per buffer10,000 entries (1 to 1,000,000, or unlimited)
Drop policy when the pool is fullDrop oldest
Orphaned-buffer retention24 hours
Running out of room (modules.pipelineEngine.durability.roomWarning)Amber under 1 h, red under 15 min, at the current rate
First "No data lost" notice of an outage (modules.pipelineEngine.durability.outageInfoAfter)After 5 minutes
Outage records kept90 days