Help with openfire hazelcast 2 server clustering

Hello, Im trying to setup my 2 rackspace cloud servers with hazelcast clustering, But I cannot get it to work, in openfire admin, clustering is enabled and I see only 1 node at the moment.

my config file looks like this on server 1:

224.2.2.3

54327

198.101.159.111:5701

166.78.249.122:5701

166.78.249.111

and on server 2:

224.2.2.3

54327

198.101.159.111:5701

166.78.249.122:5701

166.78.249.122

and the log file on server 1 says:

Jun 02, 2014 11:07:53 AM com.hazelcast.config.ClasspathXmlConfig

INFO: Configuring Hazelcast from ‘hazelcast-cache-config.xml’.

Jun 02, 2014 11:07:53 AM com.hazelcast.instance.DefaultAddressPicker

INFO: Interfaces is enabled, trying to pick one address matching to one of: [19$

Jun 02, 2014 11:07:53 AM com.hazelcast.instance.DefaultAddressPicker

INFO: Prefer IPv4 stack is true.

Jun 02, 2014 11:07:53 AM com.hazelcast.instance.DefaultAddressPicker

INFO: Picked Address[198.101.159.111]:5701, using socket ServerSocket[addr=/0:0$

Jun 02, 2014 11:07:54 AM com.hazelcast.system

INFO: [198.101.159.111]:5701 [openfire] Hazelcast Community Edition 3.1.7 (2014$

Jun 02, 2014 11:07:54 AM com.hazelcast.system

INFO: [198.101.159.111]:5701 [openfire] Copyright © 2008-2014 Hazelcast.com

Jun 02, 2014 11:07:54 AM com.hazelcast.instance.Node

INFO: [198.101.159.111]:5701 [openfire] Creating TcpIpJoiner

Jun 02, 2014 11:07:54 AM com.hazelcast.core.LifecycleService

INFO: [198.101.159.111]:5701 [openfire] Address[198.101.159.111]:5701 is STARTI$

Jun 02, 2014 11:07:54 AM com.hazelcast.cluster.TcpIpJoiner

INFO: [198.101.159.111]:5701 [openfire]

INFO: [198.101.159.111]:5701 [openfire]

Members [1] {

Member [198.101.159.111]:5701 this

}

Jun 02, 2014 11:07:54 AM com.hazelcast.core.LifecycleService

INFO: [198.101.159.111]:5701 [openfire] Address[198.101.159.111]:5701 is STARTED

Jun 02, 2014 11:07:54 AM com.hazelcast.partition.PartitionService

INFO: [198.101.159.111]:5701 [openfire] Initializing cluster partition table fi$

Check your firewall. Your servers need to communicate over ICMP (Echo Request) Port 5701.

hello and thank you for feedback. But I have allowed the port 5701 on ufw settings and the conf file looks like this:

ok icmp codes

-A ufw-before-input -p icmp --icmp-type destination-unreachable -j ACCEPT

-A ufw-before-input -p icmp --icmp-type source-quench -j ACCEPT

-A ufw-before-input -p icmp --icmp-type time-exceeded -j ACCEPT

-A ufw-before-input -p icmp --icmp-type parameter-problem -j ACCEPT

I have finally resolved this. I created a network and added the 2 servers to it on rackspace cloud. then edited the config files as below

this is server 1 conf

224.2.2.3

54327

192.168.3.1:5701

192.168.3.2:5701

192.168.3.0-24

and server 2

224.2.2.3

54327

192.168.3.1:5701

192.168.3.2:5701

192.168.3.0-24

But on the openire admin page for server 2, I get N/A for incoming and outgoing servers

192.168.3.1
d5cbc91c-ee4e-44e2
Jun 12, 2014 8:05:30 AM
N/A
N/A
N/A


N/A

192.168.3.2
a24af589-8627-47d1
Jun 12, 2014 8:05:22 AM
0 (0%)
0 (0%)
0 (0%)



41.62 MB of 237.81 MB used

server 1 adin pages looks good:

192.168.3.1
d5cbc91c-ee4e-44e2
Jun 12, 2014 8:05:32 AM
0 (0%)
0 (0%)
0 (0%)



31.22 MB of 237.81 MB used

192.168.3.2
a24af589-8627-47d1
Jun 12, 2014 8:05:32 AM
0 (0%)
0 (0%)
0 (0%)



39.47 MB of 237.81 MB used

anyone that has the same problem or can help…'thanks=)

NO problem, I just updated the page and it looks good now, both nodes are there and working

Aryan -

I haveing a very similar issue to you. I was wondering if you could please help me out.

I’m only getting one of my servers to see the other using the hazelcast plugin. I have made sure that both servers can ping each other but I still can’t get it to work. I have attached my config.

Notice I have two IP’s on two different subnets. My computer IPs are 10.0.3.167:5701 and 10.0.0.219:5701 so I made the interfance 10.0.0-5.0-255 and it does not seem to work. These servers are in AWS fyi.

224.2.2.3

54327

10.0.3.167:5701

10.0.0.219:5701

10.0.0-5.0-255

Thanks!