Oracle® Solaris Cluster Geographic Edition System Administration Guide

Exit Print View

Updated: July 2014, E39667-01
 
 

Creating a Custom Heartbeat Plug-in

When a heartbeat is created, your custom heartbeat plug-in is passed the following arguments by the Geographic Edition software:

query-interval

The value of the Query-interval property, which defines the delay in seconds after which a heartbeat status request is declared a failure.

mode

The mode for the plug-in startup, either Normal or Emergency.

plug-in-property-values

The value of the Plugin-properties property that is configured for the heartbeat plug-in, if any.

For more information about the properties you can set, see Appendix A, Standard Geographic Edition Properties.

Your custom heartbeat plug-in is expected to check the heartbeat on the secondary cluster and return one of the following exit values:

  • Zero, if successful – Indicates that the secondary cluster is alive

  • Nonzero, on failure – Indicates that the secondary cluster did not respond to the heartbeat check