Troubleshooting
Tier 2 replication stops when the primary historian is down
Short answer
Tier 2 replication is pushed by the Tier 1 historian that holds the replication configuration. Configure it on the primary alone and Tier 2 goes stale during a primary outage, then backfills through partner sync and queued replication. Configure both partners only if Tier 2 must stay current during outages.
On this page
Tier 2 replication is pushed by the Tier 1 historian that holds the replication configuration, so if you build it on the primary alone (as in a 2023 R2 SP1 P03 installation), Tier 2 freezes the moment the primary goes down and nothing else pushes upstream. The partner keeps collecting on the OT side, but collecting and forwarding are two independent facts. When the primary returns, the gap closes in two stages: partner sync first, then queued replication to Tier 2. Configure both partners only if Tier 2 must stay current during outages, and accept the second firewall rule and the duplicate-push control that choice costs.
What actually runs and what stops #
The replication configuration lives on the historian that pushes. A Tier 1 partner pair shares process data between the two Tier 1 nodes; it does not share the replication objects you built on one of them. That gives you the split behavior you see during an outage:
- The partner continues to collect and store the process data for the whole outage window.
- Replication to Tier 2 stops, because the node configured to push is unavailable.
- Tier 2 trends go flat at the outage start, even though data is being captured one tier down.
This is the vendor's documented model for multi-tier replication: tier 1 data replicates to tier 2, tier 2 to tier 3, and the configuration drives who pushes.
How the gap closes after recovery #
When the primary comes back, recovery is not instant and it is not triggered by the service start alone. It completes in two stages:
- The primary syncs with its partner and collects the data for the period it was unavailable.
- The primary sends that period to Tier 2 through queued replication.
Until both stages drain, the Tier 2 trend shows a temporary gap. If the drain seems slow long after the primary is healthy, check what a healthy backlog drain looks like in the article on why historian backfill from Tier 1 to Tier 2 runs slow: the drain rate is bounded by replication throughput, not by how fast the primary service restarted.
One partner or both: the decision #
Both configurations work at the protocol level. They differ in firewall scope, outage coverage and duplication risk:
| Criterion | Primary only | Identical on both partners |
|---|---|---|
| Firewall rules OT to IT | One rule: primary Tier 1 historian to Tier 2 | Two rules: both Tier 1 historians to Tier 2 |
| Tier 2 during a short primary outage | Stale until primary returns, then backfilled | Depends on which partner is allowed to push |
| Duplicate or competing pushes | None, single source | Two sources feeding the same Tier 2 tags |
| Configuration drift | One configuration to maintain | Two configurations kept identical by hand |
| Primary lost permanently | Tier 2 stays stale until replication is built on the partner | Partner is already configured |
The decision: if your constraint is a single firewall rule and you accept Tier 2 lagging during outages, configure the primary only. If Tier 2 must stay current during extended primary outages, configure both, and write the rule that says which partner pushes at any moment so the two never feed the same tags concurrently.
Primary-only leaves one exposure worth closing cheaply: a permanent primary loss. Document the replication settings (Tier 2 server, groups, tags) so the partner can be configured in a change window, and add the partner's firewall rule at that time. For the configuration steps and summaries on the receiving side, the guide to configuring Tier 2 replication and summaries walks the Tier 2 side of this setup.
Setting up primary-only replication #
- Identify the active/primary Tier 1 historian in the partner pair and record its hostname and address for the firewall rule.
- Create the replication configuration on that node only, pointing at the Tier 2 historian. Leave the partner without replication objects.
- Request one firewall rule: source primary Tier 1 historian, destination Tier 2 historian, with the port and protocol the replication documentation lists for your version. Read the exact port from that documentation or from the replication settings; do not open a range by guesswork.
- Confirm partner sync is healthy before relying on backfill, because recovery depends on the primary being able to collect the missed period from the partner.
- Record in the runbook that replication follows the primary node, not the active role.
What breaks primary-only replication in practice #
- Flat trend that never recovers after the primary restarts: the firewall rule is missing or scoped to the wrong source. Check that the rule source matches the primary Tier 1 historian's address and test connectivity to Tier 2.
- Gap persists after the primary is back: partner sync did not complete, so the primary lacks the missed period to forward. Query the primary for the outage window before checking Tier 2.
- Tier 2 lags for a long time after recovery: queued replication is still draining the backlog. Compare the newest Tier 2 timestamp against the primary over successive checks.
- Tier 2 stays stale after a failover where the partner became the active node: replication objects exist only on the former primary. Bring it back, or build replication on the partner and open its rule.
Separate the two layers when an operator reports a gap: did the partner collect the data (OT layer), and did the primary forward it (replication layer)? A gap that also exists on the partner is a collection problem, and no replication change fixes it.
Confirming the backfill completed #
Note the outage start and end from the primary's service stop and start, then verify in order:
- Query a representative tag across the outage window on the partner. Data must be present, proving collection continued.
- After the primary restarts, query the same tag and window on the primary. Data must appear once partner sync completes.
- Query the same tag and window on Tier 2 and repeat until the window is filled. The drain is complete when the Tier 2 values across the outage window match the primary.
With those three queries aligned, the outage is fully recovered and primary-only replication is doing exactly what its single firewall rule allows it to do.
Questions asked
Why does Tier 2 stop receiving data when the primary Tier 1 historian is down?
Replication is pushed by the historian holding the configuration. With the objects built only on the primary, the push stops the moment that historian is unavailable. The partner keeps collecting on the OT side but forwards nothing. Replication resumes after the primary returns and drains the backlog as queued replication.
Does the partner Tier 1 historian take over replication automatically?
No. The partner pair shares process data, not the replication configuration you built on the primary. The partner holds no replication objects of its own, so it sends nothing to Tier 2 until you build the same configuration on it and open its firewall path.
Why is there a gap on Tier 2 that later fills in after the primary returns?
Recovery runs in two stages. The primary first syncs the missed period from its partner, then sends that period to Tier 2 through queued replication. The trend closes after both stages finish, not when the primary service starts. Confirm completion by matching Tier 2 values across the outage window to the primary.
Which version does this behavior apply to?
The behavior described here was verified on Historian 2023 R2 SP1 at patch P03, and it matches the vendor's documented model in which the historian holding the replication configuration performs the push. Earlier releases should be checked against their own replication documentation before committing to a primary-only design.