On 7/16/11 7:12 AM, Zlatko Josic wrote:
> Hi,
>
> I have found Shoal's example at
> http://blogs.oracle.com/shreedhar/entry/shoal_clustering_101 but it
> doesn't fork for me.
> I have two network cards. I get internet adress from internet
> provider. It is dynamic address.
The following command is used to report your network configurations.
% ifconfig -a
<only significant line in my results below>
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
You must see "UP", "RUNNING" and "MULTICAST" on network interface you
are using for things
to work with UDP multicast.
>
> When I run example I start two servers. It looks like one can not find
> other. Maybe they are looking for servers at internet provider's network?
Shoal GMS uses udp multicast to dynamically find other group members.
There is a utility to test if udp multicast is working properly for your
configuration.
On each machine in a terminal window, run the following command at same
time.
% shoal/gms/bin/mcastvalidator
If machines can see each other, then you will see ouput like the
following. (I am using DHCP and manually obfuscated the full IP address
below)
$ bin/mcastvalidator
Will use port 2048
Will use address 228.9.3.1
Will use bind interface null
Will use wait period 2,000 (in milliseconds)
Listening for data...
Sending message with content
"dhcp-XXXXX9-3rd-a-10-1YY-23-2XX.dhcp.oraclecorp.com" every 2,000
milliseconds
Received data from dhcp-XXXXX9-3rd-a-10-1YY-23-2XX.dhcp.oraclecorp.com
(loopback)
Received data from dhcp-XXXXX9-3rd-a-10-1YY-23-2XX.dhcp.oraclecorp.com
Exiting after 20 seconds. To change this timeout, use the --timeout
command line option.
The above command defaults to a bind interface when there is more than one.
If you need to specify one, there is a parameter to pass to
mcastvalidator, the
following list all available parameters.
$ bin/mcastvalidator --help
I recommend setting --bindinterface to network interface address you
want to use.
If machines are connected by router or switch, the network admin will
need to ensure
that multicast is enabled to pass through.
-Joe Fialli, Oracle
> Is it posible to start example to look only localhost (127.0.0.1)
> address?
>
To run all clients on one machine, that would work as long as multicast
is enabled on loopback address.
However, that is not real world since one would not run a cluster on a
single machine.
> Thanks for any idea.
>
>
> Zlaja