Clustering

Need commands for clustering of app servers thru command prompt
saichandraAsked:
Who is Participating?
 
HonorGodConnect With a Mentor Software EngineerCommented:
What kind of clustering operations do you need?

Given a Deployment Manager, and an unmanaged node, you can use the "addNode" command
script (i.e., either addNode.bat, or addNode.sh) to federate the application server.

From wsadmin, the AdminConfig.convertToCluster() and AdminConfig.createClusterMember() methods are probably what you need.

The documentation (including examples) for which are available from:

http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/rxml_adminconfig1.html
0
 
hu8myphoConnect With a Mentor Commented:
You can only convert 1 existing server into a cluster member per cluster.  The follow-on members in that particular clusters are clones of the first member.
0
 
janglestrategiesCommented:
Are you creating these clusters and app servers from scract?

If so something along the lines of this will help.  Run these commands in wsadmin.sh  (depending on you settings you may need to use the -lang jython option)

This creates a cluster called cluster1 and creates 2 ap servers called member1 and member2 across 2 nodes.

AdminTask.createCluster('[-clusterConfig [-clusterName cluster1]]')  

AdminTask.createClusterMember('[-clusterName cluster1 -memberConfig [-memberNode node1 -memberName member1 -memberWeight 2] -firstMember [-templateName default -nodeGroup DefaultNodeGroup -coreGroup DefaultCoreGroup]]')  

AdminTask.createClusterMember('[-clusterName cluster1 -memberConfig [-memberNode node2 -memberName member2 -memberWeight 2]]')  

Oh almost forgot, don't forget to do your AdminConfig.save()

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.