Sun Cluster Data Services Developer's Guide for Solaris OS

Sun Cluster Application Environment

The Sun Cluster system enables applications to be run and administered as highly available and scalable resources. The Resource Group Manager (RGM) provides the mechanism for high availability and scalability.

The following elements form the programming interface to this facility:

The following figure shows the interrelationship of these elements.

Figure 1–1 Programming Architecture of the Sun Cluster Application Environment

Diagram showing interrelationship between callback methods,
RMAPI, Process Monitor Facility (PMF), and DSDL

Sun Cluster Agent Builder, which is described in Chapter 9, Sun Cluster Agent Builder, is a tool in the Sun Cluster package that automates the process of creating a data service. Agent Builder generates data service code in either C (by using DSDL functions to write the callback methods) or in the Korn (ksh) shell command language (by using low-level API commands to write the callback methods).

The RGM runs as a daemon on each cluster node and automatically starts and stops resources on selected nodes or zones according to preconfigured policies. The RGM makes a resource highly available in the event of a node or zone failure or reboot. The RGM does so by stopping the resource on the affected node or zone and starting it on another node or zone. The RGM also automatically starts and stops resource-specific monitors. These monitors detect resource failures and relocate failing resources onto other nodes or zones or monitor other aspects of resource performance.

The RGM supports both failover resources and scalable resources. A failover resource can be online on only one node or zone at a time. A scalable resource can be online on multiple nodes or zones simultaneously. However, a scalable resource that uses a shared address to balance the service load between nodes can be online in only one zone per physical node.