Comparison
Two redundant historians behind redundant SCADA gateways
Short answer
Run both Ignition gateways continuously with identical logging configurations — same tag names, same DataSets — and let first-in-wins deduplication keep one record per change in each Canary Historian. Make the pair fully redundant with two Identity services behind a load balancer storing to one MSSQL instance, then test all seven units before go-live.
On this page
- Should both Ignition gateways log to both Canary historians all the time?
- How does the historian avoid storing the same sample twice?
- Where does the Identity service go in a fully redundant pair?
- Is one Identity service a single point of failure?
- How do two separate Canary historians each get the full tag set?
- Cold standby or warm standby — which one should you run?
- What does the Ignition side of the pair need?
- What do you test before calling the pair redundant?
- Questions asked
Yes — log from both Ignition gateways to both Canary historians continuously, and add redundancy where the vendor documents a single point of failure: the Identity service. Give both gateways an identical logging configuration, let each Sender push on change, and rely on first-in-wins deduplication inside each Receiver/Historian. Run two Identity services behind a load balancer with one MSSQL instance behind them, then prove the design by stopping each unit one at a time. The sections below commit to that architecture, show what the deduplication rule does with real timestamps, and mark the one behavior no document settles.
Should both Ignition gateways log to both Canary historians all the time? #
Log from both gateways all the time: the vendor's documented warm-standby architecture is identical to the cold-standby one, both Senders push on change to the same Receiver/Historian, and only the first unique tag-and-timestamp combination is stored.
Canary Labs' engineers state the architecture is the same regardless of warm or cold standby; what changes is traffic, not topology. In cold standby the second gateway sits idle and begins logging the same tag names to the same DataSets only once the primary is unavailable — everything between the failure and that start is a hole in the record that you have to size and defend in an incident review. Warm standby keeps both Senders pushing around the clock, so there is no switchover detection to tune and no hole to explain. The cost is two live streams across the plant network instead of one, which is a bandwidth question, not a storage one at a single store.
The one condition that makes it work: the logging configuration must be duplicated exactly, the same tag names into the same DataSets on both gateways. Relax that and the deduplication rule stops matching — the next section shows exactly what a mismatch costs.
How does the historian avoid storing the same sample twice? #
The Receiver/Historian applies first-in-wins: when two Senders deliver the same tag name with the same timestamp, only the first arrival is stored, so one physical change produces one record per historian even with both gateways sending.
The rule keys on the combination of tag name and timestamp, so the worked example below uses an illustrative tag, Line1.OvenTemp, on a line where the oven steps from 182.0 °C to 187.5 °C with event time 14:02:31.000:
- Gateway A's Sender delivers (tag name, 14:02:31.000, 187.5) first, at 14:02:31.212 — stored.
- Gateway B's Sender delivers the identical combination 126 ms later, at 14:02:31.338 (338 − 212 = 126) — already present, dropped.
- Stored samples for one physical change: 1.
Now break the condition. Suppose Gateway B stamps its copy from its own clock: 14:02:31.005. That combination is unique, so the historian stores it — two samples 5 ms apart (005 − 000 = 5) for one physical change. Every count, average and step drawn from that tag now doubles up on the same event, and nothing flags it as wrong. The decisive difference is 5 ms in the stamp, not the 126 ms of delivery delay.
So the decision is binary: if the pair can be shown to stamp the same change identically, run warm standby; if it cannot, run cold standby, where only one gateway logs at a time and deduplication is never needed. Verify this once with a forced change captured on both gateways, and re-verify after any upgrade that touches stamping.
Where does the Identity service go in a fully redundant pair? #
Run two Identity services behind a load balancer, both storing their information in one MSSQL instance — that is the vendor's documented fully redundant architecture, and each service can sit on a Historian server or on its own separate VM.
Canary Labs' own Identity architecture guidance draws it this way: one load balancer in front, two instances behind it, one shared MSSQL store, so accounts and permissions cannot drift between the instances. Placement matters less than separation — two instances on two machines. One instance per Historian server is the natural choice; a separate virtual machine per instance works too, and on a smaller site the second machine can be an industrial mini PC dedicated to the login path, as long as it is not the same chassis as the first instance.
The shared MSSQL instance is the remaining common dependency: protect it with SQL Server's own high-availability features or protected storage, because both Identity services read and write there. Plants that also land Ignition tag history in SQL Server and replicate it to a standby carry one more moving part — every newly added tag's article must join the replication publication, which is what the guide to automating MSSQL article addition for Ignition tag history replication handles.
Is one Identity service a single point of failure? #
Yes: with one Identity service, its loss stops authentication for every Canary client, and the vendor's own guidance names it a single point of failure — two instances behind a load balancer, on a shared MSSQL store, are the documented fix.
The release notes for version 24 state the role plainly: the Identity service acts as the single point of authentication and authorization for all Canary clients, which is why its placement is breaking-change material. There is a second, quieter dependency in the same service: when Tag Security is enabled there, a remote Collector cannot write to the Historian by default. In this two-server design that default denies exactly the traffic you depend on during a failover, so confirm the write grant for every gateway-side Collector on both historian servers before the acceptance test, not after a failed switchover.
How do two separate Canary historians each get the full tag set? #
Point one Sender at both Receivers: the documented edge pattern forwards one Sender's stream to multiple Receivers, each writing a different Canary Historian, so both machines hold the complete tag set without any cross-store coordination.
Concretely: each gateway's Sender registers the Receiver on both historian servers. Both stores then receive both gateways' streams, and each store applies first-in-wins to its own copy — the stores never synchronize with each other, and they do not need to, because redundancy comes from two complete copies, not from a sync protocol. It is the historian-side cousin of the failover plant engineers already run when a PLC's MQTT publisher switches to a redundant second broker.
One behavior no document settles: a single Receiver automatically spreading or failing its writes over between two historian machines. Do not build on it. Put one Receiver on each historian server, which is the documented forwarding pattern, and let the clients do the switching between stores.
Cold standby or warm standby — which one should you run? #
Choose warm standby when both gateways send continuously: it removes the failover-detection gap that cold standby carries, at the price of doubled network traffic, while deduplication keeps one record per change in each historian.
| Decision point | Cold standby | Warm standby |
|---|---|---|
| Streams during normal running | One | Two |
| Stored rows per change | One | One when tag names and stamps match, two when a stamp differs |
| Gap on switchover | From failure until the standby begins logging | None from detection; writes continue on the surviving path |
| Identity architecture | Two instances behind the load balancer | Two instances behind the load balancer |
| Choose it when | Stamps cannot be proven identical | Stamps verified identical on the pair |
The architecture underneath is the same either way — same Senders, same DataSets, same Identity placement — which is the vendor's stated position; the table only moves the moment data flows. If you are benchmarking ecosystems before you commit, the mechanisms differ per vendor: the AVEVA Historian Connector's redundancy options are its own scheme, and the InTouch pattern — redundant historians with parallel tag logging — leans on the same duplicate-configuration idea this article uses.
Decision: run warm standby whenever the stamp test passes; run cold standby only where it fails, and revisit that choice at every upgrade that touches timestamping.
What does the Ignition side of the pair need? #
Both gateways carry the identical logging configuration — the same tag names into the same DataSets — and each treats the Canary Historian as its target data historian, so a failover changes nothing about what is written.
Inductive Automation's support site documents connecting a Canary Historian as an Ignition data historian, including setup and troubleshooting. Build that configuration once against your full tag list, export it, and deploy it unchanged to both gateways rather than rebuilding the second one by hand — a retyped tag list is how identical stops being identical. Ignition's own gateway redundancy decides which gateway is active at any moment, and history providers across a redundant pair can stop writing without raising an alarm: the case where remote tag history stops when gateway redundancy fails is the silent failure this design has to be tested against.
Decision: one exported configuration, deployed twice unchanged, and a tag-name comparison between the two gateways after every edit.
What do you test before calling the pair redundant? #
Seven units fail one at a time in a proper acceptance test: two gateways, two historian servers, two Identity services and the load balancer; after each stop, confirm every tag still writes and clients still log in.
Run the tests in a planned window and warn the operators first — each stop is a real outage for the clients behind these services, and an unplanned one tests morale, not redundancy.
- Stop the primary gateway. The standby's Sender keeps pushing the same tag names to the same DataSets in both historians; read back one known tag and check the value and timestamp land in both stores.
- Run warm and force a change on a known tag. Exactly one stored sample per store confirms first-in-wins; two samples per store means a stamp mismatch, and the fix is in the gateway configuration, not the network.
- Stop one historian server. Clients must follow the surviving store with no gap at the switch — client failover is precisely where surprises live, as the case where only Historian Trend follows a redundant partner shows.
- Stop one Identity service and log in as a plant user through the load balancer; recover it, then repeat with the second instance.
- Enable Tag Security the way you will run it in production and confirm every remote Collector still writes to both historians — the default deny for remote Collectors is documented, not theoretical.
- Restart each stopped unit and confirm it rejoins: the Sender reconnects to its Receivers and the next forced change lands in both stores again.
The decision, in one line: both Ignition gateways logging continuously with identical configurations, each gateway's Sender forwarding to the Receiver on each Canary Historian server, two Identity services behind a load balancer on one MSSQL instance, cold standby only where the stamp test fails — and no go-live until all seven units have survived a stop-and-recover pass with the tags verified after each one.
Questions asked
As of which Canary version do Axiom logins cross a reverse proxy to reach the Identity service?
As of version 25.0, Axiom authenticates a login through a reverse proxy that forwards the call onto the Identity service, so login traffic crosses one more hop than before. Put that reverse-proxy path into the load-balancer failure test: stop one Identity instance and confirm the balancer moves logins to the surviving instance, because a login path left pointing at a dead instance blocks every login that follows.
Does logging from both Ignition gateways double the historian storage?
Not at a single Receiver/Historian: first-in-wins stores one sample per unique tag-and-timestamp combination, so the row count does not grow twice. Across two historian machines it does — each store holds the full tag set at your logging rates, so size both for the whole load. Keep retention identical on both stores; if one machine deletes sooner, a client that fails over presents a shorter trend history than the primary did.
Can the Calc service replace the two-Receiver pattern?
The vendor's tutorials document another forwarding option: a Calc service can store data locally and forward it to multiple Historians for load balancing. That is a distribution mechanism, not the redundancy pattern in this article — load balancing spreads one stream across targets, while the two-Receiver design keeps a complete copy on every machine. Pick by goal: Calc forwarding for capacity, independent Receivers for failover copies.
Where should the load balancer itself run?
On hardware independent of both historian servers, so losing either machine cannot take the login path down with it. A small virtual machine on a separate host covers most plants; what matters is that its own failure is tested like every other unit. Reusing an existing reverse proxy that already fronts plant web clients is acceptable only if that proxy's failure is covered by the same test.