IMD SolutionComputing LibraryShop main store

Explainer

Why redundant historians recover from Sender disk buffering

Edge computing and IIoT Published 6 min read

Short answer

In a collector-and-Sender redundant-logging design you never copy data between historians after an outage. The Sender caches each historian's undelivered records to disk and flushes them when the connection returns, so the offline server catches up without contacting its partner. Size the cache for the longest outage you tolerate and keep the collector and Sender close to the source, because a source-link break is the gap buffering cannot cover.

On this page
  1. What the Sender does while a historian is down
  2. Why the two historians never need to talk
  3. Which failures the cache covers, and which it does not
  4. Sizing the disk cache: a worked example
  5. How long the catch-up takes
  6. Verify the recovery, do not assist it
  7. The decision
  8. Questions asked

You do not need to copy data from the running historian into the isolated one after an outage. In a collector-and-Sender redundant-logging design, the Sender caches each historian's undelivered records to disk while that historian is unreachable, then flushes the backlog when the connection returns. The offline historian catches up through its own connection to the Sender, so the two servers never communicate and your isolation requirement holds by design. The two things you must get right are the size of the Sender's disk cache, which sets the longest outage you can survive, and the placement of the collector and Sender relative to the source, because a source-link break is the one failure this buffering cannot cover.

What the Sender does while a historian is down #

One collector gathers data from the source; the Sender delivers it to every configured historian over a separate stream per destination. When one historian becomes unreachable, the Sender keeps writing that stream's records to a disk cache on its own machine while live logging to the healthy historian continues untouched. When connectivity returns, the cached backlog is flushed to the restored historian and normal streaming resumes. This per-destination caching is the documented behavior of a multi-stream Sender configuration, and it is the whole recovery mechanism: nothing moves between the two historians at any point.

Why the two historians never need to talk #

Sender buffering moves the recovery function from the historian tier down to the delivery tier. Each historian recovers through its own stream, so isolation is preserved by architecture, not by procedure. That is the opposite trade from replication designs, where the historians must communicate: a Tier 2 replication setup that stops when the primary is down copies historian to historian and therefore cannot satisfy an isolation rule. AVEVA documents the same independence for its own redundant historians, which it describes as not intended to be a synchronized pair with fully mirrored configuration and data. A third flavor, redundant InTouch historians with parallel tag logging, has one logger writing both historians directly, so the catch-up path belongs to the logger rather than a Sender. Pick the model your isolation rule allows: if the servers must not communicate, replication is out and Sender buffering is in.

Which failures the cache covers, and which it does not #

Failure Recovered by Sender buffering? What happens to the data
Sender-to-historian network link down Yes Records cached to disk, flushed on reconnect
Historian server down Yes Same cache-and-flush path once the server returns
Collector-to-source link down No Data produced during the break never reaches the Sender
Historian history store lost or corrupted No The cache is not a backup; restore from historian backups
Sender cache volume fills mid-outage Not beyond the limit Backlog past the configured cache size is at risk

The uncovered source-link row is why placement matters. Buffering protects only the path it sits on: between the Sender and each historian. If the collector runs remotely from the source, the network between them is an unprotected window, and data produced while it is down is gone before any cache sees it. Installing the collector and Sender on or beside the source, as covered in the Sender, historian and collector installation topology, removes that path entirely. Same-machine installation is a risk decision, not a requirement for buffering to work.

Sizing the disk cache: a worked example #

The cache must hold one record per tag per sample for the whole outage. Take illustrative inputs and confirm the real figures for your own system:

  • 1,000 tags, logged once per second each
  • 24 bytes per record in the cache file (an assumption; verify against the vendor documentation or by measuring cache growth in service)
  • a longest tolerated outage of 24 hours

Records per day: 1,000 tags × 86,400 s = 86,400,000 records.

Cache for the outage: 86,400,000 records × 24 B = 2,073,600,000 B, about 2.1 GB.

Decision: double that for file overhead, index storage and an outage that overruns, and keep roughly 5 GB free on the Sender's cache volume, with an alert when usage passes a threshold you choose, for example 80 percent. The arithmetic scales linearly: ten times the tag count or logging rate means ten times the result, which is why you do it once with your real inputs before the first outage rather than during it.

How long the catch-up takes #

Reconnection is instant; catch-up is not. With the example backlog of 86,400,000 records and an assumed sustainable delivery rate of 20,000 records per second to the restored historian, the flush needs 86,400,000 ÷ 20,000 = 4,320 s, about 72 minutes. The same link carries live data during the flush, so expect the real catch-up to run somewhat longer than that figure. The number that matters operationally is the ratio of backlog to delivery rate: a slow network to the historian turns a long outage into hours of drain time, and a second outage during the drain extends the gap. Budget the drain time into your recovery procedure and confirm the queue is empty before you call the historian healthy.

Verify the recovery, do not assist it #

Resist the urge to export from the healthy historian and import into the recovering one: a manual import during a flush risks duplicate or interleaved timestamps. Instead:

  1. Restore the Sender-to-historian connection and leave the pair alone.
  2. Watch the Sender's queue or cache indicator drain to empty.
  3. Query a known tag across the outage window on the restored historian and compare values and timestamps with the same query on the healthy one.
  4. Accept a tag, a value and a timestamp inside the gap as proof, not merely a reconnected server, the same standard described in when store-and-forward data counts as stored in the historian.

If a gap remains after the queue drains, the data never reached the cache: a source-link break or an overfull cache. That is the case for a deliberate backfill through the collector path, as described in backfilling late and out-of-order data into Canary collectors, never a historian-to-historian import.

The decision #

  • Two historians that must stay isolated, fed by one collector-and-Sender pair: use dual logging with Sender disk buffering. There is no manual sync after outages; the Sender is the sync.
  • Historians allowed to communicate: replication remains technically available, but it buys no data advantage over buffering and it violates the isolation rule, so choose buffering here too.
  • Collector necessarily remote from the source: accept and document the source-link exposure, or move the pair closer to the source; do not pretend the cache covers a path it does not sit on.
  • Cache sized from your real tag count, logging rate and outage tolerance, with matching free space and a growth alert: commit to that size at commissioning, because the outage that tests it will not announce itself.

Questions asked

Do the two historians ever exchange data in this design?

No. Each historian's missing window arrives through its own Sender stream, so an export and import between the two servers is never part of routine recovery. Even a deliberate backfill of a gap the cache never captured is fed through the collector path, not historian to historian, which keeps the isolation rule intact at every step.

What happens if the Sender's cache volume fills during a very long outage?

The exact behavior at the limit is product-specific and stated in the vendor documentation, so confirm it before commissioning. The sizing rule is not product-specific: cache need equals records per hour times bytes per record times outage hours, and anything beyond the cache cannot be recovered through this path. An alert on cache growth turns an overlong outage into a known event instead of a silent gap.

Does Sender buffering replace historian backups?

No. The cache is a transient recovery queue for one failure mode, an unreachable historian. It does not survive loss of the Sender machine's own disk, and it does not protect history blocks from corruption or deletion on the historian. Keep the vendor's historian backup procedure running alongside dual logging: the buffer shortens outages, backups survive disasters.

Is Sender buffering the same as Tier 2 historian replication?

No. Replication copies data historian to historian and requires the pair to communicate, which conflicts with an isolation requirement. Sender buffering keeps the historians independent and puts recovery in the delivery tier, where the Sender already holds every record it ships. If your servers must stay isolated, replication is the wrong tool regardless of vendor.

Keep reading

  • Troubleshooting

    Running redundant InTouch historians with parallel tag logging

    InTouch has no dual-Historian target, so a partner Historian configured for redundancy stays empty. Log process data in parallel: the same tag list imported into both Historians, an IDAS on each node reading the OI Server. Handle historical alarms separately with A2ALMDB, because IDAS failover does not carry alarm data.

    Edge computing and IIoT

  • Troubleshooting

    Suspended and locked on a redundant Process Historian pair

    The locked server is protecting its archive because its storage volume has reached its capacity limit, and the inactive compression is a symptom of the suspended server processing nothing. No state switch works until free space returns. Free space through retention and archive tools, migrate only by the documented procedure for your installed version, then recover redundancy with the storage-healthy server first.

    Edge computing and IIoT

  • Explainer

    AVEVA Historian Connector redundancy options explained

    AVEVA Historian Connector v3.1 does not manage failover between redundant Historians. For collection redundancy, run two Connectors, each writing to its own Historian, with configurations you keep identical by procedure; use Historian partner and client failover only to cover temporary access loss.

    Edge computing and IIoT

Why the IncuityDiagnostics LogEntries table fills the disk