Sun Cluster 3.0 Data Services Developers' Guide

Implementing a Scalable Resource

A scalable resource is a resource that can be online on more than one node simultaneously. Scalable resources include data services such as Sun Cluster HA for iPlanet Web Server and HA-Apache.

The RGM provides a number of properties that support implementation of a scalable resource.

The boolean resource property Scalable identifies a resource as scalable (TRUE) or not (FALSE). A resource whose Scalable property is TRUE is said to be in in scalable mode. A resource whose Scalable property is FALSE is said to be in failover mode.

If you declare the Scalable property in the RTR file for a resource, the RGM automatically creates the following set of scalable properties for the resource:

You can create a data service that can run in both scalable and failover mode. To do so, declare the Scalable resource property in the data service's RTR file. You can declare it without a value (the default value is FALSE), or explicitly set its value to FALSE. By default, this resource runs in failover mode. However, the cluster administrator can make the resource run in scalable mode by changing the value of Scalable to TRUE with an administrative utility.

The cluster administrator creates a scalable resource group to contain scalable service resources. Scalable resources make use of shared address resources, which allow the multiple instances of a scalable service to appear as a single service to the client. The shared address resources upon which a scalable resource depends must reside in a separate failover resource group.

The cluster administrator uses the RG_dependencies resource group property to specify the order in which resource groups are brought online and offline on a node. This ordering is important for a scalable service because the scalable resources and the shared address resources upon which they depend are in different resource groups. A scalable data service requires that its network address (shared address) resources be configured up before it is started. Therefore, the administrator must set the RG_dependencies property to include the resource group containing the shared address resources.

The RG_mode property allows the cluster administrator to identify a resource group as failover or scalable. If RG_mode is SCALABLE, the RGM allows Maximum_primaries to have a value greater than 1, meaning the group can be mastered by multiple nodes simultaneously. The RGM does not allow a resource whose Failover property is TRUE to be instantiated in a resource group whose RG_mode is SCALABLE.

See Sun Cluster 3.0 Concepts for additional information regarding scalable resources.

Validation Checks For Scalable Services

Whenever a scalable resource is created or updated, the RGM validates various resource properties. If the properites are not configured correctly, the RGM rejects the attempted update or creation. The RGM performs the following checks: