Skip to main content

Cluster Glassfish on Vmware VMs. (validate-multicast failed)

1 reply [Last post]
Anonymous

Hello Shreedhar, Hi everybody,

Is there a known issue with using Gassfish 3.1.2.2 clustering on Vmware ?
In a nutshell, in my DEV environment I have 1 physical server and 4 Vms on
it (all running Debian 6)
On one VM, I have DAS with the by default localhost domain and on 2 others
VM I have 2 other GF 3.1.2.2 installed.
(on the fourth VM, iPlanet Webserver 7 for loadbalancing).
What I did, in a very easily way, is to create a cluster (with the basic
commands) and then create some SSH nodes from the DAS on the 2 others GF.
All happens well, always. I have any problem, to ping the different hosts,
in and outside Glassfish.
Yet, the validate-mulitcast command with or without options behind has never
worked, even on loopback !

I¹m really getting crazy with that (as much as with mu SSL certificate ;-) )
And, when I launch the small application (clusterjsp for example) with some
instances created on the both SSH nodes, it seems that the failover session
(with iplanet LB) works only
when we switch between 2 instances on the same node else it fails..as if the
instances didn¹t see each other...

At the end, I am wondering if there was any link with the fact that it is
running on Vmware... Hopefully NO !

Thanks in advance dream team ! ;-)

--
Thomas CATTY
06.75.67.24.71

³There are three ways to get something done; do it yourself, hire someone,
or forbid your kids to do it.² (Mona Crane)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jfialli
Offline
Joined: 2003-06-16

On 11/9/12 4:20 AM, Thomas CATTY wrote:
> Hello Shreedhar, Hi everybody,
>
> Is there a known issue with using Gassfish 3.1.2.2 clustering on Vmware ?
> In a nutshell, in my DEV environment I have 1 physical server and 4
> Vms on it (all running Debian 6)
> On one VM, I have DAS with the by default localhost domain and on 2
> others VM I have 2 other GF 3.1.2.2 installed.
> (on the fourth VM, iPlanet Webserver 7 for loadbalancing).
> What I did, in a very easily way, is to create a cluster (with the
> basic commands) and then create some SSH nodes from the DAS on the 2
> others GF.
> All happens well, always. I have any problem, to ping the different
> hosts, in and outside Glassfish.
> *Yet, the validate-mulitcast command with or without options behind
> has never worked, even on loopback !
> *

Virtual machines have their own network interfaces, different than
native OS network interfaces. It is can be non trivial to configure
multicast to work
in such environments. Default glassfish clustering relies on multicast
will not work if the validate-multicast commmand does not work.
The utility is simply java multicast and it is a tool for a network
administrator to configure multicast to ensure that it is configured
properly
in an environment. If that is not working, default glassfish clustering
will not work.

I can refer you to the following documentation links to assist you:
Group Management Service -
http://docs.oracle.com/cd/E26576_01/doc.312/e24934/clusters.htm#gjfnl

To Validate That Multicast Transport is available for a Cluster :
http://docs.oracle.com/cd/E26576_01/doc.312/e24934/clusters.htm#gklhd
(you still need to understand how to configure exisiting network
interfaces so multicast is enabled across virtual machines, we do not
document how to enable multicast and to get it working for all OS and
Virtual Machine configurations.
We provide a tool that verifies the network interfaces are configured
properly so multicast is verified to be working properly as the network
is configured
and physically configured.)

If you are not able to configure multicast to work in such an
environment, I recommend trying clustering in non-multicast mode.
Discovering a Cluster When Multicast Transport is Unavailable.
http://docs.oracle.com/cd/E26576_01/doc.312/e24934/clusters.htm#CHDGAIBJ
This mode does not require multicast to work between the virtual
machines but it does require some configuration as described in the
documentation.

When there are multiple network interfaces and the system is not
selecting the proper one by default,
one can override the default network interface description using the
following:
Using the Multi-Homing Feature With GMS:
http://docs.oracle.com/cd/E26576_01/doc.312/e24934/clusters.htm#gjdlw

-Joe Fialli

> ***
> I'm really getting crazy with that (as much as with mu SSL certificate
> ;-) )
> And, when I launch the small application (clusterjsp for example) with
> some instances created on the both SSH nodes, it seems that the
> failover session (with iplanet LB) works only
> when we switch between 2 instances on the same node else it fails..as
> if the instances didn't see each other...
>
> At the end, I am wondering if there was any link with the fact that it
> is running on Vmware... Hopefully NO !
>
> *Thanks in advance dream team ! ;-)
>
>
> --
> Thomas CATTY
> 06.75.67.24.71
>
> "/There are three ways to get something done; do it yourself, hire
> someone,
> or forbid your kids to do it./" (/Mona Crane)
> /