Troubleshooting
Why only Historian Trend follows a redundant partner
Short answer
Only Historian Trend, in the Client Desktop package, follows the partner of a redundant Historian pair; Historian Query and Historian Client Web stay bound to the failed primary until you repoint them or move a network alias. Trend then stays on the partner by design until its connection drops or a new connection attempt starts.
On this page
- Why does only Historian Trend follow the redundant partner?
- How do I prove which clients fail over in my pair?
- What do I check when Trend itself does not switch?
- Why does Trend stay on the partner after the primary returns?
- How do Query and Client Web reach data during an outage?
- Is an empty Client Web page a binding fault or a data fault?
- How do I verify the failover path end to end?
- Questions asked
When you shut down the primary of a redundant Historian pair, only Historian Trend follows the partner on its own; Historian Query and Historian Client Web stay pointed at the dead server and keep failing until you act. The automatic client failover the redundant-Historian documentation describes lives in one place: the Trend component of the Client Desktop package, both the application and the embeddable control. This article separates what fails over from what does not, explains why Trend stays on the partner after the primary returns, and gives the two workable routes, manual repoint or a network alias, for the tools that do not follow.
Why does only Historian Trend follow the redundant partner? #
Because the automatic switch documented for redundant Historians is implemented only in Historian Trend, as both the standalone application and the embeddable control inside the Client Desktop package; Historian Query and Historian Client Web read one server name and never try a second.
The redundant-Historian documentation states that a client switches over to the configured partner when the primary is unavailable and remains connected to that partner even after the primary becomes available again. Deployed pairs narrow that sentence to a Trend feature, not a suite-wide one. During an outage the observable split is a short gap in Trend while it lands on the partner, a connection error from Query, and failed page loads in Client Web: three tools, one of which follows.
How do I prove which clients fail over in my pair? #
Shut down the primary Historian with all three clients open and watch each one: one of the three, Trend, resumes on the partner by itself, while the other two keep failing until you repoint them, and that split identifies the client class, not a fault.
Run this only in a maintenance window or on a test pair: while the primary is stopped it collects nothing, and every tool bound to it alone is blind for the duration.
| Client | Behavior when the primary is unreachable | What the operator sees |
|---|---|---|
| Historian Trend (application and control, Client Desktop) | Switches to the configured partner automatically | Trend resumes after a short gap |
| Historian Query | No automatic switch | Connection error or no data until it points at the partner |
| Historian Client Web | No automatic switch | Web trends and tables fail to load from the dead server |
A client that matches its row is working as designed. A Trend that does not match its row has a configuration fault, which is the next check.
What do I check when Trend itself does not switch? #
Check three things in order: the pair is configured as primary and partner on the servers, the Trend client has that partner defined, and the client machine can reach the partner by name and port, because failover only ever targets a configured, reachable partner.
- Confirm the two Historians are set up as a redundant pair on the servers themselves. Both servers logging the same tags is its own design; running redundant InTouch historians with parallel tag logging covers that side, and without it the partner Trend lands on holds nothing worth failing over to.
- Confirm the partner is defined in the Trend client configuration. Failover works only toward a configured partner, never toward a discovered one.
- Stop the primary and watch Trend. If it moves to the partner, the Trend path is good and any remaining symptoms belong to Query or Client Web.
- If it does not move, verify name resolution and the Historian service port from the client machine to the partner, and confirm the installed Client Desktop carries the failover feature. If Trend cannot connect even with both servers up, that is a connectivity fault rather than a failover fault: troubleshooting historian trend client connection failures walks the connection side.
Why does Trend stay on the partner after the primary returns? #
Because the client keeps the working connection by design: Trend returns to the primary only when its connection to the partner fails or when a new connection attempt starts, such as restarting Trend, so the stay-on-partner behavior is not a failed failback.
Those are the only two documented return conditions. The decision that follows: if operators must be back on the primary after a planned recovery, restart Trend once the primary is restored, and put that restart in the written recovery procedure. Reading stay-on-partner as a fault sends people chasing a problem that does not exist.
How do Query and Client Web reach data during an outage? #
Repoint them: with no client-side failover in either tool, the choice is between changing the server name by hand in each tool and moving a network name you control, a DNS alias or a load-balancer target, onto the surviving server.
| Route | How it works | Choose it when |
|---|---|---|
| Manual repoint | Enter the partner's server name in the Query or Client Web configuration | Few users, and outages are rare and short |
| Network-level redirect | Users connect to an alias or virtual name you retarget to the surviving server | Many users, and no tolerance for manual steps during an outage |
Use the alias wherever many users depend on Client Web, because retraining operators to repoint under pressure is the failure point of the manual route. The alias is infrastructure you add, not a Historian feature, and its propagation is governed by the TTL you publish.
Illustrative example, your values differ: you publish the Client Web alias with a 300-second TTL. The longest any user can hold the old address after you retarget the alias is 300 s ÷ 60 s/min = 5 min, so every web user is back within five minutes of the switch. At a 60-second TTL the same arithmetic gives 60 s ÷ 60 s/min = 1 min. Set the TTL from the outage you accept, and lower it ahead of the maintenance window rather than during one. A reverse proxy is one such layer in front of the web client: exposing a historian web client through a reverse proxy also leaves you a single name to move.
Is an empty Client Web page a binding fault or a data fault? #
Read the server name in the Client Web configuration first: if it names the stopped primary, the fault is binding and you repoint it or move the alias; if it names the live partner, the fault is on the tag side and you check the tag and the collection behind it.
Binding faults are fixed by the routes above. A tag-side fault on the partner means the failover worked and the data did not: confirm the tag exists on the partner and that collection into the partner ran through the outage, or a correctly failed-over view still draws a flat line. Whether the partner holds the same tags and current data is a collection-side design, and AVEVA Historian Connector redundancy options explained covers the choices.
How do I verify the failover path end to end? #
Run one scripted outage in a maintenance window: with both servers up, open Trend, Query and Client Web; stop the primary; confirm Trend moves alone; repoint the other two; then restore the primary and restart Trend to bring it home.
- With both Historians running, open all three clients against the primary and confirm each returns current values.
- Stop the primary.
- Confirm Trend moves to the partner with no user action and draws live data, not a flat line.
- Repoint Query and Client Web to the partner, or move the alias, and confirm both return current values from the partner.
- Restart the primary and wait for it to be available.
- Restart Trend and confirm it reconnects to the primary; leave Query and Client Web as repointed, or move the alias back.
The last step decides the steady state after recovery: Trend homes on restart, and the other two hold whatever target you set for them.
Questions asked
What happens if the primary Historian goes down while Client Web is open?
Client Web stays bound to the failed server and never tries the partner. Its trends and tables fail to load until you change the server name in its configuration or move the DNS alias to the partner. Prepare the alias before an outage; asking operators to repoint a web client during one is the weak point of the manual route.
What happens if the primary comes back while Trend is on the partner?
Trend stays connected to the partner by design, which prevents flapping between two live servers. It returns to the primary only if its connection to the partner fails or on a new connection attempt, such as restarting Trend. Add a Trend restart to the recovery procedure when operators must be back on the primary.
What happens if I run Historian Query against a redundant pair?
Query points at one server name and never tries a second. When that server goes down you get a connection error, and the fix is to enter the partner's server name manually and rerun the query. There is no partner field to preconfigure in Query; the redundancy setup on the servers does not extend to it.
Does the redundant configuration on the Historian servers change any of this?
Only as a prerequisite. The servers must be set up as a redundant pair and the partner must be defined in the Trend client, or Trend has nowhere to switch to. Query and Client Web gain no automatic behavior from that server-side configuration; they still read a single server name at all times.