Hello everyone,
I'm looking for a recommended approach to configure alarms for Gateway Redundancy in Ignition. The requirement is to generate separate alarms whenever the active Gateway switches between the Master and Backup nodes, covering both Failover and Failback scenarios.
Requirement
We need to generate two separate alarms to identify the following Gateway redundancy events:
- FailOver: When the Master Gateway goes down and the Backup Gateway takes over as the active Gateway.
- FailBack: When the Master Gateway becomes available again and the system switches back from the Backup Gateway to the Master Gateway.
Approach 1: Single Expression Tag with Two Alarms
I initially created a separate Expression Tag at the following path:
[BSO]Dashboard/System Performance/Gateway/Redundancy/FailOver
The expression used was:
if(
{[System]Gateway/Redundancy/IsActive}
&& !{[System]Gateway/Redundancy/IsMaster},
1,
0
)
The expression returns:
1when the Backup Gateway is active.0when the Master Gateway is active.
I configured two alarms on this single Expression Tag:
| Alarm Name | Mode | Setpoint | Priority |
|---|---|---|---|
| FailOver | Equal | 1 | Critical |
| FailBack | Equal | 0 | Critical |
Observed behaviour:
- When switching from Master to Backup, the FailOver alarm is generated successfully.
- When switching from Backup to Master, the FailBack alarm is not generated.
Approach 2: Two Separate Expression Tags with Individual Alarms
As an alternative, I created two separate Expression Tags using the same expression and configured an individual alarm on each tag instead of configuring two alarms on a single tag.
Observed behaviour:
- When switching from Master to Backup, the FailOver alarm is generated successfully.
- When switching from Backup to Master, the FailBack alarm is also generated successfully.
- However, when switching back from Backup to Master, the previously generated FailOver alarm does not generate a clear/return-to-normal event. It is not appearing as a cleared alarm in the Alarm Status.
Similarly, I would expect the FailBack alarm to clear when the Gateway switches back to Backup during a subsequent failover.
Expected Behaviour
Ideally, the alarm configuration should behave as follows:
| Gateway Transition | Expected Alarm Behaviour |
|---|---|
| Master → Backup | FailOver alarm activates |
| Backup → Master | FailOver clears and FailBack activates |
| Master → Backup | FailBack clears and FailOver activates |
The objective is to have mutually exclusive FailOver and FailBack alarms that accurately reflect the current Gateway redundancy state.
Any suggestions, recommended configurations, or alternative approaches would be greatly appreciated.
Thank you!