You have to check if multicast is supported in your production
environment. Talk to your system/network admin guys.
If multicast is supported then life is easier because there is no need
to maintain tcp/ip configuration. so simply use the following:
<network>
<port auto-increment="true">5701</port>
<join>
<multicast enabled="true">
<multicast-group>224.2.2.3</multicast-group>
<multicast-port>54327</multicast-port>
</multicast>
<tcp-ip enabled="false">
<interface>127.0.0.1</interface>
</tcp-ip>
</join>
<interfaces enabled="true">
<interface>192.168.24.*</interface>
</interfaces>
...
</network>
notice that multicast is enabled and tcp-ip is disabled. we still need
<interfaces> so that Hazelcast binds to right IPs o each machine (for
more info:
http://hazelcast.com/docs/2.0/manual/single_html/#ConfigSpecifyInterfaces).
If you go with multicast then we highly recommend using different
<multicast-group> IP for your production, development and test
clusters for clean separation.
If multicast is not enabled or not wanted then you will have to
disable multicast and enable tcp/ip. Your config then should look like
this:
<network>
<port auto-increment="true">5701</port>
<join>
<multicast enabled="false">
<multicast-group>224.2.2.3</multicast-group>
<multicast-port>54327</multicast-port>
</multicast>
<tcp-ip enabled="true">
<interface>192.168.24.5</interface>
<interface>192.168.24.6</interface>
<interface>192.168.24.7</interface>
</tcp-ip>
</join>
<interfaces enabled="true">
<interface>192.168.24.*</interface>
</interfaces>
...
</network>
Notice that <tcp-ip> contains all known IP addresses where Hazelcast
will be running. And we still need <interfaces> so that Hazelcast
binds to the right IP set.
http://twitter.com/oztalip
> --
> You received this message because you are subscribed to the Google Groups
> "Hazelcast" group.
> To post to this group, send email to
haze...@googlegroups.com.
> To unsubscribe from this group, send email to
>
hazelcast+...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/hazelcast?hl=en.