4

We have opened TCP ports from 5701 to 5709 and also opened UDP port of 54327 which includes inbound and out bound rules in aws console.

We have enabled multicast mode as true, TCP/IP mode as false in both machines Hazelcast configuration.

And also added the following line in iptables

iptables -A INPUT -m pkttype --pkt-type multicast -j ACCEPT

But two machines Hazelcast cluster members are not connected. Are there any other reasons. Could you please provide if there are any other missed points here.

janisz
  • 6,292
  • 4
  • 37
  • 70
Karthik S
  • 117
  • 1
  • 4
  • 14

2 Answers2

3

Amazon EC2 networking does not support multicast communication. See http://aws.amazon.com/vpc/faqs/.

Would it be possible to configure Hazelcast to implement clustering with regular TCP or UDP traffic only ?

Sébastien Stormacq
  • 14,301
  • 5
  • 41
  • 64
3

First try with regular TCP/IP setup to make sure nothing else is in the way.

Once that is working try out the following (from the Hazelcast book)

If you don't see members joining, then it is likely because multicast is not available. A cause can be the firewall; you can test this by disabling the firewall or enable multicast in the firewall [see firewall section]. Another cause can be that it is disabled on the network or the network doesn't support it. On *NIX environments you can check if your network interface supports multicast by calling ifconfig | grep -i multicast, but it doesn't mean that it is available. To check if multicast is available, iperf is a useful tool which is available for Windows/*NIX/OSX. To test multicast using multicast-group 224.2.2.3, open a terminal one 2 machines within the network and run the following in the first terminal:

iperf -s -u -B 224.2.2.3 -i 1

and

iperf -c 224.2.2.3 -u -T 32 -t 3 -i 1

in the other terminal. If data is being transferred then multicast is working.

janisz
  • 6,292
  • 4
  • 37
  • 70
pveentjer
  • 10,545
  • 3
  • 23
  • 40