Saturday, May 9, 2015

wsadmin dynamic cluster creation websphere 8.5

Go to dmgr bin folder.

./wsadmin.sh -lang jython -username <user> -password <urpassword>
wsadmin>options = ['-membershipPolicy "node_nodegroup = \'DefaultNodeGroup\'" -dynamicClusterProperties "[[operationalMode automatic][minInstances 1][maxInstances 1][numVerticalInstances 1][serverInactivityTime 1440]]" -clusterProperties "[[preferLocal false][createDomain false][templateName default][coreGroup DefaultCoreGroup]]"']
wsadmin>AdminTask.createDynamicCluster('testdyn',options)


The above command will create dynamic cluster and add the server which belong to DefaultNodegroup as cluster members automatically.

When any new server created and its part of the Default nodegroup will be added as cluster member.

No comments:

Post a Comment

Your suggestions please