The sample data service starts, stops, restarts and switches the DNS application among the nodes of the cluster in response to cluster events such as administrative action, application failure, or node failure.
Application restart is managed by the Process Monitor Facility (PMF). If application deaths exceed the failure count within the failure time window, the fault monitor fails the resource group containing the application resource over to another node.
The sample data service provides fault monitoring in the form of a PROBE method. that uses the nslookup command to ensure that the application is healthy. If the probe detects a hung DNS service, it tries to correct the situation by restarting the DNS application locally. If this does not improve the situation and the probe repeatedly detects problems with the service, then the probe attempts to fail over the service to another node in the cluster.
A resource type registration file that defines the static properties of the data service.
A Start callback method invoked by the RGM to start the in.named daemon when the resource group containing the HA-DNS data service is brought online.
A Stop callback method invoked by the RGM to stop the in.named daemon when the resource group containing HA-DNS goes offline.
A fault monitor to check the availability of the service by verifying that the DNS server is running. The fault monitor is implemented by a user-defined PROBE method and started and stopped by Monitor_start and Monitor_stop callback methods.
A Validate callback method invoked by the RGM to validate that the configuration directory for the service is accessible.
An Update callback method invoked by the RGM to restart the fault monitor when the system administrator changes the value of a resource property.