Intelligent Management: dynamic cluster administrative tasks
Use the dynamic cluster commands to view or edit the dynamic clusters, without using the administrative console.
AdminConfig.save() command to save the changes.createDynamicCluster
The createDynamicCluster command creates a new dynamic cluster.
- -membershipPolicy
- Specifies the membership policy. (String, required)
- -dynamicClusterProperties
- Specifies the dynamic cluster properties. (String, optional) You can specify the following
options:
- -clusterProperties
- Specifies the cluster properties. (String, optional) You can specify the following options:
Return value
The command returns javax.management.ObjectName value of the dynamic cluster that you created.
Batch mode example usage
Interactive mode example usage
createPHPDynamicCluster
The createPHPDynamicCluster command creates a new PHP dynamic cluster.
- -membershipPolicy
- Specifies the membership policy subexpression. (String, required)
- -dynamicClusterProperties
- Specifies the dynamic cluster properties. (String, optional) You can specify the following
options:
- -clusterProperties
- Specifies the name of the server template. The valid input includes the
templateName value:
Return value
The command returns javax.management.ObjectName value of the dynamic cluster that you created.
Batch mode example usage
Interactive mode example usage
createDynamicClusterFromStaticCluster
The createDynamicClusterFromStaticCluster command creates a new dynamic cluster from an existing static cluster.
- -templateName
- Specifies the name of the existing static cluster member template. The format of the name must be in the cell_name/node_name/server_name format. If the template is not specified, an existing static cluster member template is randomly chosen. If no members exist, the default server template is used. (String, optional)
- -dynamicClusterProperties
- Specifies the dynamic cluster properties. (String, optional) You can specify the following
options:
Return value
The command returns the javax.management.ObjectName value of the dynamic cluster that you created.
Batch mode example usage
Interactive mode example usage
createDynamicClusterFromForeignServers
- -foreignServers [[node_name1 server_name1 ][node_name2 server_name2] ...]
- Specifies the node and server names of the existing other middleware servers. (String, required)
- -dynamicClusterProperties
- Specifies the dynamic cluster properties. (String, optional) You can specify the following
options:
Return value
The command returns the javax.management.ObjectName identification of the server type that you updated.
Batch mode example usage
Interactive mode example usage
createODRDynamicCluster
Use the createODRDynamicCluster command to create on demand router dynamic clusters.
Target object
Specifies the name of the dynamic cluster.
Required parameters
- membershipPolicy
- Specifies the membership policy.
Optional parameters
- -dynamicClusterProperties
- Specifies the dynamic cluster properties. (String, optional) You can specify the following
options:
- -clusterProperties
- Specifies the cluster properties. (String, optional) You can specify the following options:
- preferLocal: Specifies whether enterprise bean requests are routed to the node on which the client resides when possible. The valid values are true or false.
- createDomain: Specifies that a replication domain is created for this cluster. Replication domains can be created only for WebSphere Application Server application servers. The valid values are true or false.
- coreGroup: Specifies the name of the core group for the dynamic cluster. You only need to specify the core group for WebSphere Application Server application servers. The value can be DefaultCoreGroup or the core group name.
- templateName: Specifies the name of the server template.
The valid input includes the following values for WebSphere
Application Server
dynamic clusters:
- For WebSphere Application Server dynamic clusters: defaultXD, defaultXDZOS, cell_name/node_name/was_server_name
clusterShortName: For z/OS platforms, specifies the short name of the cluster. After the dynamic cluster has been created, you can use the AdminTask changeClusterShortName command to update this field.
serverSpecificShortNames: For z/OS platforms, specifies the specific short name of cluster member in a comma-separated list format, for example:
SSN1,SSN2. Use commas to separate multiple short names. If you do not provide enough short names to be used for all of the cluster members, then the remaining cluster members are assigned generated generic short names, such asBBOS001, BBOS002, and so on. After the dynamic cluster has been created, you can update this list with the serverSpecificShortNames custom property. This property is set on the dynamic cluster. If you want to change this property with scripting after the dynamic cluster has been created, you can use the AdminTask changeServerSpecificShortName command.
Batch mode example usage
- Using Jacl:
$AdminTask createODRDynamicCluster dcName {parameters} {-membershipPolicy "node_nodegroup = 'DefaultNodeGroup' AND node_property$com.ibm.websphere.wxdopProductShortName = 'WXDOP'" -dynamicClusterProperties "{operationalMode automatic}{minInstances 2}" -clusterProperties "{templateName defaultXD}{preferLocal false}"} - Using Jython string:
AdminTask.createODRDynamicCluster('dcName', '[-membershipPolicy "node_nodegroup = 'DefaultNodeGroup' AND node_property$com.ibm.websphere.wxdopProductShortName = 'WXDOP'" -dynamicClusterProperties [[operationalMode automatic][minInstances 2]] -clusterProperties [[templateName defaultXD][preferLocal false]]]')
Interactive mode example usage
- Using Jacl:
$AdminTask createODRDynamicCluster {-interactive} - Using Jython
string:
AdminTask.createODRDynamicCluster ('[-interactive]')
addForeignServersToDynamicCluster
The addForeignServersToDynamicCluster command adds foreign servers to an existing dynamic cluster.
- -foreignServers [[node_name1 server_name1 ][node_name2 server_name1] ...]
- Specifies the node and server names of the existing other middleware servers. (String, required)
Return value
The command returns the javax.management.ObjectName identification of the server type that you updated.
Batch mode example usage
Interactive mode example usage
removeForeignServersFromDynamicCluster
The removeForeignServersFromDynamicCluster command removes foreign servers from the dynamic cluster
- -foreignServers [[node_name1 server_name1 ][node_name2 server_name1] ...]
- Specifies the node and server names of the existing other middleware servers. (String, required)
Return value
The command returns the javax.management.ObjectName identification of the server type that you updated.
Batch mode example usage
Interactive mode example usage
deleteDynamicCluster
The deleteDynamicCluster deletes a dynamic cluster from the configuration.
Return value
The command returns the javax.management.ObjectName identification of the dynamic cluster that you deleted.
Batch mode example usage
Interactive mode example usage
getDynamicClusterMembers
The getDynamicClusterMembers command displays the members of the specified dynamic cluster and node name. If the node name is not specified, then all of the members of the dynamic cluster are displayed.
- -nodeName
- Specifies the name of a node. (String, optional)
Return value
The command returns a list of ClusterMember objects.
Batch mode example usage
Interactive mode example usage
getDynamicClusterOperationalMode
The getDynamicClusterOperationalMode command displays the operational mode of the dynamic cluster.
Return value
The command returns the value of operationalMode. String.
Batch mode example usage
Interactive mode example usage
getDynamicClusterMembershipPolicy
The getDynamicClusterMembershipPolicy command displays the dynamic cluster
membership policy.
Return value
The command returns the value of membershipPolicy. String.
Batch mode example usage
Interactive mode example usage
getDynamicClusterServerType
The getDynamicClusterServerType command displays the dynamic cluster server type.
Return value
The command returns the value of serverType. String.
Batch mode example usage
Interactive mode example usage
getDynamicClusterMinInstances
The getDynamicClusterMinInstances command displays the minimum number of cluster instances for the specified dynamic cluster.
Return value
The command returns the value of minInstances. Integer.
Batch mode example usage
Interactive mode example usage
getDynamicClusterMaxInstances
The getDynamicClusterMaxInstances command displays the maximum number of cluster instances for the specified dynamic cluster.
Return value
The command returns the value of maxInstances. Integer.
Batch mode example usage
Interactive mode example usage
getDynamicClusterVerticalInstances
The getDynamicClusterVerticalInstances command displays the number of dynamic cluster vertical stacking of instances on the node.
Return value
The command returns the value of numVerticalInstances. Integer.
Batch mode example usage
Interactive mode example usage
getDynamicClusterIsolationProperties
The getDynamicClusterVerticalInstances command displays the dynamic cluster isolation properties.
Return value
The command returns the value of isolationGroup and strictIsolationEnabled. String.
Batch mode example usage
Interactive mode example usage
listDynamicClusters
The listDynamicClusters command displays all the dynamic clusters in the cell.
Return value
The command returns each of the dynamic cluster names. String.
Batch mode example usage
Interactive mode example usage
listDynamicClusterIsolationGroups
The listDynamicClusterIsolationGroups command displays all the dynamic cluster isolation groups in the cell.
Return value
The command returns a list of the dynamic cluster isolation groups. String.
Batch mode example usage
Interactive mode example usage
listDynamicClusterIsolationGroupMembers
The listDynamicClusterIsolationGroupMembers command displays the dynamic cluster isolation group members for the specified isolation group.
Return value
The command returns a list of the dynamic cluster isolation group members. String.
Batch mode example usage
Interactive mode example usage
modifyDynamicClusterIsolationProperties
The modifyDynamicClusterIsolationProperties command modifies dynamic cluster isolation properties.
- -isolationGroup
- Specifies the name of the isolation group. (String, optional)
- -strictIsolationEnabled
- Indicates if strict isolation is enabled. (String, optional)
Return value
The return value is void.
Batch mode example usage
Interactive mode example usage
setDynamicClusterOperationalMode
The setDynamicClusterOperationalMode command sets the operational mode for the dynamic cluster.
- -operationalMode
- Specifies the operational mode of the dynamic cluster. Set the value to
automatic, manual, or
supervised. (String, required)
The supervised and automatic operational modes are not supported for managed Liberty servers.
Return value
The return value is void.
Batch mode example usage
Interactive mode example usage
setDynamicClusterMembershipPolicy
The setDynamicClusterMembershipPolicy command sets the membership policy for the dynamic cluster.
Required parameters
- -membershipPolicy
- Specifies the membership policy subexpression. (String, required)
Return value
The return value is void.
Batch mode example usage
Interactive mode example usage
setDynamicClusterMinInstances
The setDynamicClusterMinInstances command sets the minimum number of cluster instances for the dynamic cluster.
Required parameters
- -minInstances
- Specifies the minimum number of cluster instances. (Integer, required)
Return value
The return value is void.
Batch mode example usage
Interactive mode example usage
setDynamicClusterMaxInstances
The setDynamicClusterMaxInstances command sets the maximum number of cluster instances for the dynamic cluster.
Required parameters
- -maxInstances
- Specifies the minimum number of cluster instances. (Integer, required)
Return value
The return value is void.
Batch mode example usage
Interactive mode example usage
setDynamicClusterVerticalInstances
The setDynamicClusterVerticalInstances command sets the number of dynamic cluster vertical stacking instances on the node.
Required parameters
- -numVerticalInstances
- Specifies the number of vertical stacking of instances on a node.(Integer, required)
Return value
The return value is void.
Batch mode example usage
Interactive mode example usage
testDynamicClusterMembershipPolicy
The testDynamicClusterMembershipPolicy command tests the dynamic cluster membership policy to see which nodes are returned.
Required parameters
- -membershipPolicy
- Specifies the membership policy subexpression. (String, required)
Return value
The command returns a String [] list of node names.
Batch mode example usage
Interactive mode example usage
createNonWASDynamicCluster
The createNonWASDynamicCluster command creates a new dynamic cluster of complete life-cycle management servers.
- -serverType
- Specifies the server type. (String, required)
To see the server types, view the app_server_root\profiles\dmgr_profile\config\templates\servertypes directory.
- -membershipPolicy
- Specifies the membership policy subexpression. (String, required)
- -dynamicClusterProperties
- Specifies the dynamic cluster properties. (String, optional) You can specify the following
options:
- -clusterProperties
- Specifies the cluster properties (String, optional)
Return value
The command returns the javax.management.ObjectName value of the dynamic cluster that you created.
Batch mode example usage
Interactive mode example usage
Edit the dynamic cluster server template
Identify the dynamic cluster server template and assign the template to the serverid variable.
Batch mode example usage