0

I want to be able to "spin up" additional WebLogic 11g managed servers in a cluster to add additional horizontal instances.

The use case is that I start with a WebLogic cluster that has X instances and I want to add an additional instance dynamically i.e. using a script and using a live system (without any downtime).

What can I use (e.g. WLST?) to create the additional managed server, configure it e.g. add it to the domain? Has anyone done this?

BestPractices
  • 12,738
  • 29
  • 96
  • 140

2 Answers2

0

here is an example. You can do a svr.setCluster and svr.setMachine

Mani
  • 965
  • 6
  • 10
0

Here is an example with WLST:

Create:

connect('username','password')
edit()
startEdit()
cmo.createServer('managed1')
cd('Servers/managed1')

Add server to cluster (after cd to server added above)

cmo.setListenPort(ListenPort)
cmo.setCluster("MyCluster")
cmo.setMachine(Machinename)

Reaching/creating a cluster in WLST works in a similar way:

cd('/')
cmo.createCluster('MyCluster')
cd('/Clusters/MyCluster')
cmo.setClusterAddress('myhost:port,myhost2:port')
cmo.setClusterMessagingMode('unicast')
Display Name is missing
  • 6,197
  • 3
  • 34
  • 46