OpenData - About - What is Failover? How does it work?

OpenData - About - What is Failover? How does it work?

Failover

Systems with two or more OpenData EE Servers and a remote database have the ability to provide seamless failover if the active server fails. Each server runs three non-database services: the Message Broker, the Event Manager, and the web application. The following illustration shows the key application components in a simplified configuration.


 

The following sections describe the stages of interruption and recovery that take place during a failover. In real time, the changes happen so quickly that service is seamlessly continued throughout the failure.

Failover Initial State

In the initial state, the device gateway is reporting its status through its connection to the primary server, and the Event Manger Watchdog Timer is running for each individual virtual device. Every time a message of any kind is received from a device, its timer is reset. After 15 minutes with no messages, the timer runs out and the device is marked as being offline.


 

Failover Stage Two

In stage two, the connection between the device gateway and the primary server has been broken. In the following illustration the failure is in the network connection and the primary server is still running, so the watchdog timers begin counting down. The Device Gateway immediately attempts to connect to the secondary server, and the Event Manager on the secondary server responds by collecting the latest status information from the database about the devices. Here you can see the importance of having the database situated remotely from the primary server, because if the server itself went down, any data stored on it would be unavailable to the secondary Event Manager.


 

Failover Stage Three

In stage three, the primary server has been disconnected from the Device Gateway for more then 15 minutes and its watchdog timers have timed out. Before marking the devices as offline, the primary server sends a message to the Device Gateway and waits for a response. If there is no response, then it checks the database to see if there is current data being entered. The secondary server has taken over all the tasks usually performed by the primary server, so the primary server sees the current data and resets its timers.


NOTE: that the Device Gateway does not automatically return to the primary server when the connection is restored. The secondary server continues to operate until a failure forces its return to the primary. You can trigger this manually by temporarily shutting down the backup server.


    • Related Articles

    • OpenData - Services used by OpenData

      Installation of OpenData on a server will include three services: Apache Tomcat Modius - More info in this FAQ: What is Apache Tomcat? Event Manager Service Wrapper ModiusBroker OpenData also makes use of Microsoft SQL Server. This must be installed ...
    • About OpenData Device Templates

      Each device has a set of attributes that can be monitored. OpenData comes with templates for monitoring the attributes for many manufacturers’ devices. Templates are the easiest and fastest way to start monitoring your devices. Modius templates ...
    • What is the OpenData Collector?

      is the Windows based data collection application that provides communication with devices, normalizes the data and reports the data back to the main OpenData application. Communication with the main application database is encrypted. (Blowfish) ...
    • OpenData - What is Apache Tomcat?

      Apache Tomcat Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies. It is the service that serves the web pages to the browser. It is developed in an open and participatory environment and ...
    • OpenData - How do I export Table Data from the OpenData dashboard?

      Exporting Table Data You can export data from a number of the DCiM EE tables, in a variety of formats. If you see the following at the bottom of a table, then the data in that table can be exported: Click on an export option icon in the Export ...