Olá pessoal.
estou tentando clusterizar duas maquinas uitlizando glassfish.
segui alguns tutoriais que encontrei na web.
porem todos obtive o mesmo problema.
então vamos lá, fiz assim:
Maquina1: windowxp
java -Xmx256m -jar glassfish*.jar
cd glassfish
lib\ant\bin\ant -f setup-cluster.xml
Maquina2: Ubuntu Hardy Heron
java -Xmx256m -jar glassfish*.jar
cd glassfish
chmod -R +x *
lib/ant/bin/ant -f setup-cluster.xml
Maquina1:
cd bin
asadmin start-domain
Maquina2:
cd bin
./asadmin start-domain
Maquina1:
asadmin create-node-agent --host localhost --port 4848 node1
asadmin create-cluster --host localhost --port 4848 cluster1
asadmin create-instance --host localhost --port 4848 --nodeagent node1 --cluster cluster1 instance1
asadmin start-node-agent --syncinstances=true node1
Maquina2:
./asadmin create-node-agent --host xxx.xxx.xxx.xxx --port 4848 node2
./asadmin create-instance --host xxx.xxx.xxx.xxx --port 4848 --nodeagent node2 --cluster cluster1 instance2
./asadmin start-node-agent --syncinstances=true node2
então acontece este problema:
Redirecting output to C:/glassfish/nodeagents/node2/agent/logs/server.log
Redirecting application output to C:/glassfish/nodeagents/node2/agent/logs/server.log
Node Agent node2 failed to startup. Please check the server log for more details.
CLI137 Command start-node-agent failed.
e no server.log
start
startInstancesOverride=NOTSET
syncInstances=true
[#|2008-05-27T15:44:28.593-0300|INFO|sun-appserver9.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|IdentityManager Data: User:admin|#]
[#|2008-05-27T15:44:28.812-0300|INFO|sun-appserver9.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NAGT0004:Starting Node Agent...|#]
[#|2008-05-27T15:44:28.828-0300|CONFIG|sun-appserver9.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|DAS url = service:jmx:rmi:///jndi/rmi://freekele-laptop:8686/management/rmi-jmx-connector|#]
[#|2008-05-27T15:44:28.937-0300|INFO|sun-appserver9.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NAGT0025:The node agent could not configure logging levels. Default logging level will be used.|#]
[#|2008-05-27T15:44:28.937-0300|INFO|sun-appserver9.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NAGT0038:Executing Synchronization for node-agent With DAS|#]
[#|2008-05-27T15:44:40.781-0300|INFO|sun-appserver9.1|javax.ee.enterprise.system.tools.synchronization|_ThreadID=10;_ThreadName=main;|SYNC001: Unable to communicate with Domain Administration Server. Skipping synchronization.|#]
[#|2008-05-27T15:44:40.781-0300|SEVERE|sun-appserver9.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;freekele-laptop;8686;rmi_jrmp;|NAGT0028:It appears that the Domain Administration Server (DAS) with [host=freekele-laptop], [port=8686], [protocol=rmi_jrmp] is down. It could also mean that the network settings on DAS machine need to be modified. If you believe that the DAS is running, this error usually comes when the correct address is not obtained by client.|#]
[#|2008-05-27T15:44:40.796-0300|SEVERE|sun-appserver9.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NAGT0035:The NodeAgent failed to complete the intial synchronization with the DAS. Please make sure the DAS is running and is accessible from the NodeAgents server|#]
[#|2008-05-27T15:44:42.796-0300|WARNING|sun-appserver9.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NAGT0013:Stopping Node Agent...|#]
então na:
Maquina1:
asadmin list-domains
domain1 running
Command list-domains executed successfully.
Maquina2:
./asadmin list-domains
domain1 running
Command list-domains executed successfully.
Maquina1:
asadmin list-node-agents
node1 running
node2 not running
asadmin list-instances
instance1 running
instance2 not running
asadmin list-clusters
cluster1 partially running
Bom o problema está no node2 da instancia2, então parece que a instancia não inicia porque node2 não está sincronizado.
gostaria de ver, se alguem aqui já conseguiu sicronizar os dois DAS, e fazer o node-agent rodar.
pois está dificil aqui.
OBS: as duas maquinas estão se vendo.
consigo acessar o http://maquina:4848/ uma para a outra.
bom acho que é isso, se alguem tiver como me dar uma ajudar, dar alguma opinião do que eu esteja fazendo de errado, ou deixando de fazer, sinta-se livre.
Obrigado.
Ha. para quem estiver interessado, e quiser ficar mais a par.
segue alguns links.
http://blogs.sun.com/bloggerkedar/entry/a_recipe_to_create_clusters
http://docs.sun.com/app/docs/doc/819-3670/abrat?a=view
http://developers.sun.com/appserver/reference/techart/glassfishcluster/
http://blogs.sun.com/Prashanth/entry/setting_up_load_balancing_in#Installing_the_GlassFishV2
T+
Obrigado