cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to see both cluster nodes in Hybris console

Former Member
0 Kudos

I tried to implement clustering using jgroup tcp wherein I made followng changes in local.properties for both hybris setup:

clustermode=true cluster.id=0 cluster.maxid=2 cluster.broadcast.methods=jgroups cluster.broadcast.method.jgroups=de.hybris.platform.cluster.jgroups.JGroupsBroadcastMethod cluster.broadcast.method.jgroups.tcp.bind_addr=intenal IP1 cluster.broadcast.method.jgroups.tcp.bind_port=9998 cluster.broadcast.method.jgroups.clusternodes=internal IP1:9998 ; Intenal IP2:9998 cluster.broadcast.method.jgroups.channel.name=hybris-broadcast cluster.broadcast.method.jgroups.configuration=jgroups-tcp.xml cluster.broadcast.method.jgroups.networkinterface=eth0

&&

clustermode=true cluster.id=1 cluster.maxid=2 cluster.broadcast.methods=jgroups cluster.broadcast.method.jgroups=de.hybris.platform.cluster.jgroups.JGroupsBroadcastMethod cluster.broadcast.method.jgroups.tcp.bind_addr=Internal IP2 cluster.broadcast.method.jgroups.tcp.bind_port=9998 cluster.broadcast.method.jgroups.clusternodes=internal IP1:9998 ; Intenal IP2:9998 cluster.broadcast.method.jgroups.channel.name=hybris-broadcast cluster.broadcast.method.jgroups.configuration=jgroups-tcp.xml cluster.broadcast.method.jgroups.networkinterface=eth0

Now I do not get any exceptions during hybris startup but when I open console I am able to see only one node for the cluster.

Any help on the same is appreciated...!!!

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

Great, good luck with your twins 😉 That's how I call my nodes :)

former_member634278
Participant
0 Kudos

Hello,

I have a question regarding to the clustering :

I configured the cluster nodes as the documentation in the wiki and i can see the nodes list in HAC but i cant see the ip addresses ? as attached .

Thanks

Former Member
0 Kudos

Thanks everyone for the input. The issue is resolved now. This was more a firewall issue where the node wasn't able to see each other using specific port.

Former Member
0 Kudos

Then you should go and ask your admins wheter the port you want to use is opened and also if the firewall on your machines allows you to use this protocol.

Former Member
0 Kudos

I think Maciek is right, you should first check if the machines can ping each other.

Former Member
0 Kudos

Yes they can ping each other.

Former Member
0 Kudos

Hi,

Can 192.0.1.189 and 172.10.120.251 see each other? These addresses look like they are in different subnets. Please verify if these machines can ping each other.

Best,

Maciek

Former Member
0 Kudos

Yes they can ping each other ping 172.10.120.251 PING 172.10.120.251 (172.10.120.251) 56(84) bytes of data. 64 bytes from 172.10.120.251: icmp_seq=1 ttl=64 time=4.85 ms 64 bytes from 172.10.120.251: icmp_seq=2 ttl=64 time=2.84 ms 64 bytes from 172.10.120.251: icmp_seq=3 ttl=64 time=1.81 ms 64 bytes from 172.10.120.251: icmp_seq=4 ttl=64 time=1.72 ms 64 bytes from 172.10.120.251: icmp_seq=5 ttl=64 time=1.78 ms 64 bytes from 172.10.120.251: icmp_seq=6 ttl=64 time=1.63 ms

Former Member
0 Kudos

Hi Adriana,

Please let me know if I understood you correctly.I have made changes in both the nodes and changes are as below:

Node1(IP:172.10.120.251)

clustermode=true cluster.id=1 cluster.maxid=1 cluster.broadcast.methods=jgroups cluster.broadcast.method.jgroups=de.hybris.platform.cluster.jgroups.JGroupsBroadcastMethod cluster.broadcast.method.jgroups.tcp.bind_addr=172.10.120.251 cluster.broadcast.method.jgroups.tcp.bind_port=9998 cluster.broadcast.method.jgroups.clusternodes=192.0.1.189:9998;172.10.120.251:9998 cluster.broadcast.method.jgroups.channel.name=hybris-broadcast cluster.broadcast.method.jgroups.configuration=jgroups-tcp.xml cluster.broadcast.method.jgroups.networkinterface=eth0

Node2(IP:192.0.1.189)

clustermode=true cluster.id=0 cluster.maxid=1 cluster.broadcast.methods=jgroups cluster.broadcast.method.jgroups=de.hybris.platform.cluster.jgroups.JGroupsBroadcastMethod cluster.broadcast.method.jgroups.tcp.bind_addr=192.0.1.189 cluster.broadcast.method.jgroups.tcp.bind_port=9998 cluster.broadcast.method.jgroups.clusternodes=192.0.1.189:9998;172.10.120.251:9998 cluster.broadcast.method.jgroups.channel.name=hybris-broadcast cluster.broadcast.method.jgroups.configuration=jgroups-tcp.xml cluster.broadcast.method.jgroups.networkinterface=eth0

I am using tcserver for the nodes.Still I can only see one node(id=0) in admin console.

Former Member
0 Kudos

Hi dear, the hybris config ...supports the "cluster.broadcast.method.jgroups.networkinterface"? I don't see it in the default "/bin/platform/project.properties"....

Former Member
0 Kudos

Hi Guarav, first thing you must consider is how is "intenal IP1" and "Internal IP2" resolved to IP address? Why not putting just plain IP address?

Also you have erroros in the name: cluster.broadcast.method.jgroups.tcp.bind_addr=intenal IP1 which you refer in the secon node as cluster.broadcast.method.jgroups.clusternodes=internal IP1:9998

cluster.broadcast.method.jgroups.tcp.bind_addr=Internal IP2 which your refer in the first node cluster.broadcast.method.jgroups.clusternodes=internal IP1:9998 ; Intenal IP2:9998

If you have 2 nodes cluster.maxid= should be 1 not 2.

And second thing you should remove white spaces here:

internal IP1:9998 ; Intenal IP2:9998 (should be internal IP1:9998;Intenal IP2:9998)

and here:

internal IP1:9998 ; Intenal IP2:9998 (internal IP1:9998;Intenal IP2:9998).

Restart tomcat and try if your nodes see each other. If it doesn't help, try to ask your sys admins if you have some firewall configured which doesn't allow you to use this protocol.