Skip to Content
author's profile photo Former Member
Former Member

Unable to see both cluster nodes in Hybris console

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...!!!

Add a comment
10|10000 characters needed characters exceeded

Related questions

7 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 20, 2014 at 01:02 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Aug 20, 2014 at 01:27 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 20, 2014 at 11:32 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 20, 2014 at 12:41 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 20, 2014 at 01:18 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 20, 2014 at 03:52 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 21, 2014 at 10:12 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.