Saturday, May 9, 2015

Dynamic cluster creation in Websphere 8.5 via console





 You can click on preview membership to see which are the nodes belong to the node group selected.And also you can  use the subexpression builder to  change the expression you want.You can chose the server belong to particular node etc..
 In this one i have a selected a template from a server which is already existing.
 Keep on instance started at all times.If you cluster has more than 1 member websphere intelligent management will make sure  one server is  always available.I have mention Limit the number of instance that can start as 1 so it will not start more than one instances at any time.

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.