2 Machine Cluster Setup - CLI mode
Wednesday Sep 05, 2007
Build : GlassFish V2 b58c on Solaris
Namesake names of machines : Tiger.cat.com, Cactus.plant.com
Using the Command Line Interface of GlassFish, a cluster can be setup with ease across 2 machines. Heres how it can be done:
1. Download GF v2 b58c from https://glassfish.dev.java.net/downloads/v2-b58c.html
2. Unbundle GlassFish following the instructions and do a ant -f setup-cluster.xml to enable clustering support on the installation.
Do Step2 on both Tiger.cat.com and Cactus.plant.com
3. On Tiger.cat.com, do the following:
- Under {GF_install}
/bin, do "asadmin start-domain" which will start up the default domain "domain1".
Create a node-agent as using the command "asadmin create-node-agent --host localhost --port 4848 man-agent"
Create a cluster with the command "asadmin create-cluster --host localhost --port 4848 cat-cluster"
Create an instance with the command "asadmin create-instance --host localhost --port 4848 --nodeagent man-agent --cluster cat-cluster instance1"
Start the node-agent : "asadmin start-node-agent --syncinstances=true man-agent"
Under {GF_install} /bin, execute "asadmin create-node-agent --host Tiger.cat.com --port 4848 animal-agent" to create a node-agent on this machine pointing to the DAS (Tiger.cat.com).
Create an instance on this machine as "asadmin create-instance --host Tiger.cat.com --port 4848 --nodeagent animal-agent --cluster cat-cluster instance2"
Start node-agent, while the other node-agent is running: "asadmin start-node-agent --syncinstances=true animal-agent"











If you look at the &...
Shalini, I have followed your blog step by step bu...
The configuration in this blog have a mistake...
@Ed Xu...
Hello Shalini..
Nice Articles..
I wa...
I follow the step-by-step processes and whem I was...
Enéias,
Are these Linux machines? It appe...