Two devices can work as a redundant pair. The master is the active device: it runs the gateways, routes and logic. The slave stays on standby: it copies the data of the master and takes over when the master stops. When the master comes back, the slave returns to standby.
Redundancy needs a licence on the master. See Product licences.
flowchart LR
M["Master (active)<br>main address"] -- "redundancy link, port 9009<br>data copy + heartbeat" --> S["Slave (standby)<br>secondary address"]
F[Field buses, Cloud, users] --> M
- While the slave is connected to a working master, its own drivers stay stopped: only the master talks to the field buses.
- The slave copies the configuration and data of the master when it connects, then at a fixed period. The remanent values of the addresses are copied continuously.
- The master sends a heartbeat every 10 seconds. If the slave no longer receives it, the slave restarts; when it finds no master within about 40 seconds after its start, it takes over: it starts its drivers and takes the main address.
- When the master is back, it tells the slave to restart, and the slave returns to standby.
- Two devices of the same model, with the same interfaces (serial ports, USB adapters), on the same Ethernet network.
- A redundancy licence on the master.
- The same software release on both devices (Software update).
- Three IP addresses on the same network: the main address, used by the field equipment and the users, and one secondary address for each device.
The main address moves to the active device. For this, each device needs a Secondary address (with its netmask) on its Ethernet interface, in Network configuration (see Network):
|
Master |
Slave |
| Address (main) |
192.168.1.10 |
192.168.1.10 |
| Secondary address |
192.168.1.11 |
192.168.1.12 |
The standby device keeps only its secondary address; the active device holds the main address as well.
Without a Secondary address, each device keeps its own address and there is no address takeover: the field equipment and the users must then know both addresses.
Set up and test the master first, then add the slave.
- Configure the master completely (gateways, routes, logic) and check that it works.
- Open System › System configuration › Redundancy configuration.
- Set Role to master. Keep Master port at
9009 unless this port is used on your network.
- Confirm. Without the licence, the page shows Missing redundancy license; Continue anyway saves the setting, but the pair needs the licence to work.
- Set the network addresses of the slave (see section 3).
- Open System › System configuration › Redundancy configuration.
- Set Role to slave.
- Set Master host to the secondary address of the master, and Master port to the same value as on the master.
- Leave Master sync (ms) at
0 (a full copy every 2 minutes), or set another period in milliseconds.
- Confirm. The slave connects to the master and copies its data.
| Parameter |
Default |
Description |
| Role |
off |
off, master or slave. |
| Master host |
|
Slave only. Address of the master. |
| Master sync (ms) |
0 |
Slave only. Period of the full data copy, in milliseconds. 0 = 120000 (2 minutes). |
| Master port |
9009 |
TCP port of the redundancy link, on the master. |
Each device forwards the port Master port + 1 (9010 by default) to the web interface of the other device of the pair. For example, http://192.168.1.11:9010 opens the interface of the slave through the master.
Make configuration changes on the active device (the master in normal operation): the slave receives them at the next copy.
- Check that both devices are configured and that the slave has copied the data (see the system logs of the slave).
- Disconnect the master from the network or switch it off.
- The slave detects the loss of the master, restarts, waits about 40 seconds and takes over: its gateways start and it answers on the main address.
- Reconnect the master. It becomes active again and the slave returns to standby.
Do this test at commissioning, outside working hours.
¶ 7. Limits and troubleshooting
- Renumbering the gateways is not available on a redundant pair.
- A factory reset clears the redundancy settings: set them again afterwards.
- Both devices show their redundancy messages in System › System logs (lines starting with Redundancy).
- Scripts can follow the state of the link with the event
redundancy state change of the system module. See Peers API: system.
- The slave does not take over: check that Master host and Master port are right, that the master can be reached on this port, and that the role of each device is set.
- Both devices active at the same time: the slave cannot reach the master (wrong address, firewall). Fix the link at once: two active devices send commands to the same field equipment.