SUNW.s1mq, s1mq - resource type implementation for failover and scalable Sun Glassfish Message Queue (s1mq)
The SUNW.s1mq resource type represents the Sun Glassfish Message Queue application in an Oracle Solaris Cluster configuration. This application was formerly known as Sun Java System Message Queue.
You must set the following properties on an SUNW.s1mq resource by using clresource(8CL).
See r_properties(7) for a complete description of the following resource properties.
A list of logical-hostname or shared-address network resources upon which this resource has a dependency. This list contains all network-address resources that appear in the properties Resource_dependencies, Resource_dependencies_weak, Resource_dependencies_restart, or Resource_dependencies_offline_restart.
This property is updated automatically by the RGM, based on the setting of the resource-dependencies properties. You do not set this property directly. Instead, use the Resource_dependencies property.
Conditional/Optional
The empty list
When disabled
Specifies a list of resources upon which a resource depends. This list includes any logical-hostname or shared-address network resources that are used by a resource. The default value for this property is null.
You can specify one or more resource names. Each network resource can contain one or more logical host names. See the clreslogicalhostname(8CL) and clressharedaddress(8CL) man pages for more information.
You can specify an alternate kind of dependency by using the Resource_dependencies_weak, Resource_dependencies_restart, or Resource_dependencies_offline_restart property instead of the Resource_dependencies property. For more information, see the r_properties(7) man page.
Optional
The empty list
Any time
No default
At creation
10
2
Any time
3600
740
Any time
3600
60
Any time
Type string. This property indicates the location of Message Queue server binaries for Sun Glassfish Message Queue versions beginning with 4.4. You must specify this property at resource creation time.
Type string array. This property is a path name set to install-dir/domains/domain/server which is the path name of an s1mq instance directory. You must specify this property at resource creation time.
Type string. No default. This property contains the name of the broker to start and monitor. The imqcmd command needs this name to stop the broker if Smooth_Shutdown is set to TRUE.
Type string. Default is "". This property contains the Message Queue user name of the managed broker. This user name is used to shut down the broker if Smooth_Shutdown is set to TRUE. Smooth_Shutdown defaults to FALSE. If Smooth_Shutdown=FALSE, the broker is sent SIGTERM to shut it down. If Smooth_Shutdown is set to TRUE the broker will be shut down by using imqcmd. Using imqcmd exposes the broker user password on the imqcmd command line.
Type string. Default is 120 seconds. Minimum value is 2. This property is tunable at anytime and sets the timeout value for the probe.
For this example to work, the SUNWscs1mq data service package must first be installed. This example creates a failover s1mq resource named message-queue-failover in an existing resource group named mq-rg. The mq-rg resource group contains a LogicalHostname resource, which identifies the logical hostname associated with the resource group. This example includes the Bin_dir extension property used by Message Queue beginning in version 4.4.
example# clresourcetype register SUNW.s1mq example# clresource create -g mq-rg -t SUNW.s1mq \ -p Confdir_list=/global/s1mq/instances/hamq1 \-p Bin_dir=/opt/mq/bin \ -p Network_Resources_used=logical host \ -p Port_List=7676\tcp \ -p Broker_Name=hamq1 message-queue-failover
In the preceding example, the s1mq resource created is named message-queue-failover. The s1mq resource listens on port 7676, with a corresponding s1mq instance in the directory /global/s1mq/instances/hamq1.
Example 2 Creating a Failover s1mq Resource with Smooth_Shutdown=TRUEFor this example to work, the SUNWscs1mq data service package must be first installed. This example creates a failover s1mq resource named message-queue-failover, which listens on port 7676 in an existing resource group named mq-rg.
example# clresourcetype register SUNW.s1mq example# clresource create -g mq-rg -t SUNW.s1mq \ -p Confdir_list=/global/s1mq/instances/hamq1 \ -p Network_Resources_used=logical host \ -p Port_List=7676 -p Broker_Name=hamq1 -p Broker_User=admin \ -p Smooth-Shutdown=TRUE message-queue-failover
See attributes(7) for descriptions of the following attributes:
|
scha_resource_open(3HA), attributes(7), r_properties(7), scalable_service(7), clresourcegroup(8CL), clresourcetype(8CL), pmfadm(8)
Planning and Administering Data Services for Oracle Solaris Cluster 4.4