InfoCenter Home > 6.6.0.2.2.4.10: Configuring server groups and clonesThe wscp ServerGroup operations allow you to configure server groups and clones. Server groups are templates for creating clones of application servers. Clients see the clones associated with a server group as a single application server image. The clones of an application server automatically participate in workload management. The wscp ServerGroup operations included are as follows:
See Managing workloads for information on server groups, clones, and workload management. The following example creates a server group from an existing instance of an application server, specifying its name, server selection policy, and the value of an environment variable: wscp> ServerGroup create /ServerGroup:EjbServerGroup/ -baseInstance /ApplicationServer:EjbAppServ/ \ -serverGroupAttrs {{EJBServerAttributes {SelectionPolicy roundrobin}} {Environment {VAR1 0}}} The following example starts a server group after a delay of 30 seconds: wscp> ServerGroup start /ServerGroup:EjbServerGroup/ -wait 30 The following example stops a server group, using the -force option to stop it regardless of any other conditions: wscp > ServerGroup stop /ServerGroup:EjbServerGroup/ -force The following example adds a clone to the server group EjbServerGroup. The clone runs on node Server1: wscp > ServerGroup clone /ServerGroup:EjbServerGroup/ -cloneAttrs {{Name Clone1}} -node /Node:Server1/ The fully qualified name of the new application server instance is /Node:Server1/ApplicationServer:Clone1/. The following example lists all clones that are associated with a server group: wscp > ServerGroup listClones /ServerGroup:EjbServerGroup/ /Node:Server1/ApplicationServer:EjbServerGroup1/ /Node:Server1/ApplicationServer:EjbServerGroup2/ |
| ||
|