IMD SolutionComputing LibraryShop main store

Troubleshooting

Why historian logging pauses after a driver failover switch

Edge computing and IIoT Published 7 min read

Short answer

After a driver failover the historian is working as designed: its deadband compares each new value to the last value logged for that tag, whichever driver supplied it, so a stable signal writes no record. Log the active-driver status as an event tag and add a bounded interval or forced log only on the critical subset instead of periodic logging on all 75,000 tags.

On this page
  1. Why does the trend stay flat when the screen values are live?
  2. Which logging approaches fix it, and what does each cost?
  3. How does deadband logging behave across the switch?
  4. What should you implement for a 75,000-tag system?
  5. Can the switch be lossless for 75,000 polled tags?
  6. What goes wrong most often during failover testing?
  7. How do you verify the fix actually works?
  8. Questions asked

The historian is not failing. After a driver multiplexer switches from the primary to the secondary OPC UA server, the logging rule evaluates each incoming value against the last value logged for that tag, regardless of which driver supplied it. A signal that is stable across the switch stays inside the deadband, so no record is written and the trend stays flat even though the screen updates. The fix is not periodic logging on all 75,000 tags: log the active-driver status as an event tag and add a bounded interval or forced log on the small subset of tags that must prove they were alive after the switch.

Why does the trend stay flat when the screen values are live? #

The screen and the historian answer different questions. The screen reads the current value from whichever driver the multiplexer has active, so it looks correct the moment the secondary takes over. The historian only gains a record when its logging rule fires. Trace the path:

  • The multiplexer presents one value per tag, sourced from whichever driver is active.
  • The tag's logging rule compares that value to the last value it logged, not to the value the previous driver reported.
  • If the change is smaller than the deadband and no periodic interval or forced log fires, no record is written.

So a flat trend after failover usually means the secondary's values agree with the last logged values within tolerance. That is healthy behavior, not a fault. The case that does need attention is a gap in proof: afterwards, a post-mortem cannot distinguish a genuinely stable signal from a dead communication path that returned nothing.

The same comparison applies before the switch, by the way: if the primary was already failing and returning stale or bad values, the historian logged whatever the primary's rule produced, and the switch itself adds no marker unless you log one.

Which logging approaches fix it, and what does each cost? #

Keep the deadband, and add failover evidence on purpose. Evaluate the options against storage cost before you change anything:

  • Periodic interval on all tags: guarantees a record at each interval, but writes every tag whether or not it changed. At a one-minute interval, 75,000 tags produce 4.5 million records per hour, an illustrative 108 million per day; at an example 12 bytes per record that is about 1.3 GB per day, or roughly 470 GB across a full year before retention and indexing overhead. This is the fallback, not the design.
  • Deadband set to zero: logs every change but still nothing for an unchanging value, and it is expensive on noisy analogs. It does not solve the stable-value case at all.
  • A modest periodic interval on the critical subset only: bounds the worst-case gap after failover at that interval, at a cost proportional to the subset size.
  • The active-driver and connection-health state logged on change: negligible cost, because it writes only when the state changes, and it timestamps every switch.
  • A one-shot forced log triggered by the active-driver change: one record per tag per event, if your platform exposes a way to trigger a log write from logic for the tag type you are using.

The combination that works is the status tag plus one of the last two measures on the signals where a post-failover record matters: breaker positions, key voltages and currents, and alarm states.

How does deadband logging behave across the switch? #

It behaves as one continuous stream. The deadband test has no knowledge of which driver produced a value; it only sees the value the multiplexer hands it and compares it to the last logged record. If you want a refresher on how deadband and interval settings interact and why they preserve step changes, that comparison is laid out in the guide to historian deadband and interval settings. The practical consequence for failover: the switch is invisible to the rule unless the value crosses the deadband at that moment, or you give the rule another reason to fire.

What should you implement for a 75,000-tag system? #

Status event tags plus a bounded interval on the critical subset. Work through it in this order:

  1. List the tags that need a post-failover record. Group them by the consequence of a missing record, not by device.
  2. Identify the tag or variable set that reports the active driver and the health of each OPC UA connection. Most driver frameworks expose a small set of log-enabled communication variables for exactly this; configure them to log on change.
  3. For the critical subset, set a bounded periodic interval or add the event-driven forced log at the switch. Leave every other tag on its existing deadband.
  4. Confirm the secondary's values carry the same engineering units, scaling and quality semantics as the primary. A scaling mismatch across the switch produces a step that the historian will log as a real process change.
  5. Force a real failover by stopping the primary OPC UA server service or disconnecting its network path, then verify records against the status tag. A flat trend with a failover timestamp now reads as a stable value; a flat trend with bad quality and no failover event reads as a communication problem.

Can the switch be lossless for 75,000 polled tags? #

No. The multiplexer cannot recover samples produced while the active path was failing. The gap runs from the last good sample on the failed path to the first good sample on the secondary, and three factors set its length:

  • Failure detection time, set by the connection timeout and retry settings in the driver configuration.
  • Secondary readiness: a warm secondary already polling the relays only has to inherit the subscription; a cold one must start polling from scratch.
  • Initial data delivery: how long the secondary needs to return a first good value for every tag once the subscription moves.

With 75,000 tags the initial burst is the dominant term. Keep the secondary polling continuously so the switch moves only the application's subscription, and check the relay side: many IEDs limit simultaneous client connections, and two servers polling the same relays double the per-device load. Verify the connection limit and scan rate against the relay documentation.

Zero data loss is achievable only where the source device timestamps and buffers its data, such as relay event records that the application backfills after the switch. Plain polled values are not recovered, so pick an acceptable gap in seconds for your critical subset and prove it by test.

What goes wrong most often during failover testing? #

Test artifacts that mask the real behavior. Watch for these:

  • Testing only with a changing signal. A noisy analog crosses the deadband and hides the problem; include a stable tag in every test.
  • Reading the screen instead of querying the historian. The screen proves the driver; only a query proves logging.
  • Ignoring quality at the switch. Tags may briefly report bad or uncertain quality; confirm whether your logging rule records quality transitions or discards them.
  • Different tag paths on the two servers. The multiplexer maps by address, so a mismatched channel, device or tag name on the secondary produces permanently bad tags that look like a logging fault.
  • Skipping the failback test. The return to the primary has the same deadband behavior and its own burst of initial values.

How do you verify the fix actually works? #

One stable tag, one changing tag, one forced switch. Note the last historian records for both before the test, stop the primary OPC UA server, watch the active-driver status tag change, then query the historian over the failover window. You should see: the status tag's change record at the switch timestamp, a forced or interval record for the stable critical tag at or shortly after the switch, and normal deadband behavior for the non-critical tags. When that passes, repeat the test for failback. The bounded interval on the subset, not the one-minute interval on all 75,000 tags, is what keeps the storage bill flat while giving every switch a timestamped record.

Questions asked

Does periodic logging on all tags fix a historian that stops writing after failover?

It fixes the symptom, not cheaply. At a one-minute interval, 75,000 tags produce about 108 million records per day, roughly 1.3 GB per day at an illustrative 12 bytes per record, whether or not values change. Keep deadband logging on the bulk of the tags and add a bounded interval or a forced log only on the subset where a post-failover record matters.

Can two OPC UA servers polling the same IED relays cause connection problems?

Yes. Many protective relay devices limit the number of simultaneous client connections and the sustained scan load they accept. Two OPC servers polling the same relays double the per-device load, so confirm the relay's documented connection limit and scan rate before running a warm standby. If the standby polls on demand instead, the initial data burst after the switch sets most of your gap length.

How do I tell a stable signal from a dead path in the historian afterwards?

Log the active-driver and connection-health state as their own tags on change. The status record, not extra process samples, is what removes the ambiguity.

Does the failover gap differ for events versus polled values?

Yes. Polled values produced while the primary path was failing are never recovered; the gap runs from the last good sample on the failed path to the first good sample on the secondary. Event or record data that the source device timestamps and buffers, such as relay event records, can be backfilled after the switch, so size the acceptable gap for polled values and verify it by test.

Keep reading

  • Explainer

    Do you need a historian or just an OPC tag server?

    No. An OPC tag server (OPC DA) supplies the current value, quality and timestamp of each item and stores nothing, so monthly figures need a historian or a SQL logger collecting from that same server. Keep a reporting client like ActiveFactory only if you also run the historian it expects.

    Edge computing and IIoT

  • How-to

    How to log Ignition tags every 15 minutes to a database

    To capture Ignition tag values on a strict 15-minute schedule, use a scheduled SQL Bridge transaction group that inserts a snapshot row into a database table, then point the report's query at that table. The tag historian is deadband-driven and stores asynchronously, so it cannot be set to one fixed 15-minute timestamp.

    Edge computing and IIoT

  • Troubleshooting

    Historian not logging after re-enable in SMC

    After Historian is shut down and re-enabled through SMC Historian Management, a publishing AppEngine can stay in store-and-forward mode: the status window shows a very low data rate while history only lands in the buffer path. Check the engine's InStoreForward attribute in Object Viewer, then recover the engine with an off-scan/on-scan cycle or a stop and start in Platform Manager instead of rebooting the server.

    Edge computing and IIoT

Ignition historian deadband threshold timing test