on 08-20-2014 12:19 PM
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...!!!
Great, good luck with your twins 😉 That's how I call my nodes :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think Maciek is right, you should first check if the machines can ping each other.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.