Thursday, August 18, 2011

Unicast Cluster, reconnecting servers

Create a cluster myCluster with 3 MS: ms1, ms2, ms3
Create a unicastChannel on the 3 MS to dedicate for the unicast communication.

#connect to NodeManager
nmConnect('weblogic', 'welcome1', 'localhost', '5556', 'osb_domain', 'C:/Oracle2/Middleware/user_projects/domains/osb_domain')

#start ms1
nmStart('ms1')
#connect to ms1
connect('weblogic', 'welcome1', 't3://localhost:7011')

cd('/ClusterRuntime/myCluster/')
ls()


you should get:
AliveServerCount=1
ServerNames=java.lang.String[ms1]

Start ms2:
nmStart('ms2')

ls()

you should get:
AliveServerCount=2
ServerNames=java.lang.String[ms2,ms1]


nmKill('ms2')

Successfully killed server ms2 ...

ls

AMAZING:
AliveServerCount=2
ServerNames=java.lang.String[ms2,ms1]


how can it be... we have just killed ms2!

In fact, it takes some time for ms1 to notice that ms2 is dead. After some more seconds, you get
AliveServerCount=1
ServerNames=java.lang.String[ms1]
as it should be.






No comments: