Watchdog handling
Information Router supports monitoring devices and automatically reporting them to Shopfloor Management’s Deviation Processor, if they go silent for a given time. This feature is governed by the Watchdog Timer property value that can be set on a device type in Master Data Management. This property is then inherited by all devices of the given device type. Additionally each device can override the value of this property.
When the watchdog feature is enabled and the router is receiving a request, it checks if the sender device has the Watchdog Timer property set. If it is, then it’ll automatically start monitoring the device. If the device doesn’t send another request during the watchdog timer interval, the router reports the device as missing to Deviation Processor. This report is also automatically closed when the device sends a request again.
image::IR_WatchDogTimer_Mdm.png[height=250]
Configuration
The feature depends on a database to be able to support horizontal scalability of the Router. Because of this the database settings should be set in the appsettings first.
image::IR_Database_settings.png[height=250]
The watchdog handler is implemented as a "Processor" feature in the router so it can be used as a Pre- or Postprocessing step. These processing steps can be configured for each route setting individually. So in case a new route setting is introduced and watchdog is needed there, then it should be added to the PostProcessingMethods list of the route setting.
image::IR_WatchDog_ProcessingMethod.png[height=250]
Lastly, there is a global setting to enable/disable the Watchdog feature that can be overridden from the Helm chart.
image::IR_WatchDog_Feature_enable.png[height=150]