Skip to main content

loadbalancer in glassfish's paas

No replies
piotr.tempes
Offline
Joined: 2012-02-12
Points: 0

Hi again!

I would like to test and monitor behavior of my virtualization plugin to glassfish. I was trying to make a load balancer following this tutorial:
https://wikis.oracle.com/display/GlassFish/LBTemplating
I managed to setup apache with required mods, openssl, etc...

I fired following commands:
asadmin create-ims-config-jims --networkAddress=10.0.2.15 --networkInterface=e1000g0 --snapshotsrc=/templateZone.backup --password=futbol --zfspool=rpool
asadmin create-server-pool --subnet 10.0.2.0/24 --portname "e1000g0" --virtualization jims jimssp1
asadmin create-server-pool-user --serverpool jimssp1 --userId 0 --groupId 0 root
asadmin create-template --indexes "ServiceType=JavaEE,VirtualizationType=jims" EEjims
asadmin create-template --indexes "ServiceType=LB,VirtualizationType=jims" LBjims
asadmin create-template-user --groupid 0 --userid 0 --template LBjims --virtualization jims root
asadmin create-template-user --groupid 0 --userid 0 --template EEjims --virtualization jims root
asadmin create-machine --serverpool jimssp1 --ip 10.0.2.15 jimsm1
asadmin deploy --availabilityenabled=true --passwordfile /Desktop/glassfish3/bin/passwords.txt /Desktop/backup/SimpleSessionDemo.war

and glassfish created 4 virtual machines for me (3 ssh nodes with glassfish instances and one load balancer I believe). However due to secure-admin I am unable to use paas console and I don't know how to access deployed applications through loadbalancer, or how to monitor my cluster.

If it comes to monitoring and elasticity I created connected topic to this one:
http://www.java.net/forum/topic/glassfish/glassfish/elasticity-glassfish

thank you for your help in advance,
Peter