Server redundancy
Two servers run the same project: both poll the controllers and write their own history. One of them is active: only it runs server tasks and sends notifications and reports, so commands and messages are not duplicated. If the active server goes silent, the other one becomes active by itself, and operator clients switch to it without signing in again.
On both servers, in the runtime window (ScadaRuntime), on the settings tab, in the Redundancy section:
| Field | Server 1 | Server 2 |
|---|---|---|
| Hot-standby server pair | on | on |
| Second server (HTTP) | https://scada-2:5101 |
https://scada-1:5101 |
| This server | Primary | Standby |
| Pair key | the same, at least 8 characters | the same |
| Switch over after, s | 5 | 5 |
Both servers must run the same project: download it to both over the network (project download with addresses separated by “;” sends it to both) or keep it in a shared folder. Turn encryption on for both servers or off for both.
How the active server is chosen
Section titled “How the active server is chosen”- Both servers are running: the primary is active.
- The partner has not answered for longer than Switch over after: this server is active.
- The primary is back: it is active again.
- After start, a server waits for the partner to answer, so two servers started at the same time do not both become active.
What a server passes to the other
Section titled “What a server passes to the other”- Sign-in and sign-out: a sign-in on one server is valid on the other.
- Acknowledgement and shelving: an alarm acknowledged or shelved on one server is acknowledged or shelved on the other.
- Users and roles: a change on one server goes to the other at once. If the other one was unreachable, the newer copy wins when the link is back. After the first sync, the administrator’s one-time password no longer works: passwords are the same as on the other server.
- Recipe records, the same way as users.
- History: a server that was off asks the other one, after start, for archived tag values from its downtime (up to 7 days), so trends have no gap. Short-term history is not filled in.
Clients
Section titled “Clients”In the operator station’s server field, enter both addresses separated by “;”: scada-1;scada-2. Sign-in goes to the first one that answers. If it disappears, the client switches to the second one, and the status bar shows “Switching to the standby server”.
The web HMI in a browser opens the second server’s web HMI by itself when there has been no connection for more than 10 seconds, and the sign-in is kept. So that the browser does not stop on a certificate warning, install both servers’ certificates as trusted on operator computers (Security).
Limits
Section titled “Limits”- When users and recipes are synchronized, the later change wins, so the servers’ clocks must agree (Windows time synchronization).
- Edits made on both servers while the link was down are not merged: the newer copy wins as a whole.
- Tested with two servers in automated tests; not yet on two computers on a network.