Menu

RE: [javagroups:discussion] Cannot join cluster across 2 subnets

Bela Ban
2017-02-21
2017-02-21
  • Bela Ban

    Bela Ban - 2017-02-21

    Disable the firewall. Also make sure routers or vlans are not dropping multicasts. Then you dont need tcpping and can continue using ping.

    Sent from my Samsung device

    -------- Original message --------
    From: CodeGuru codeguru1@users.sf.net
    Date: 2/21/2017 4:31 PM (GMT+01:00)
    To: "[javagroups:discussion]" 18794@discussion.javagroups.p.re.sf.net
    Subject: [javagroups:discussion] Cannot join cluster across 2 subnets

    Recently i am trying to use JGroup to create a cluster so different machines connected to the same cluster are able to exchange messages between one another.
    I've tried the simple chat application on my localhost (between 2 java applications) and it works with no issues, i.e. they are able to receive and send messages between one another .
    Here is the scenario PC 1 : Consist of a java module ( Receiver ) Server 2 ( Module using jgroup resides in this server ) : Sender
    My next step is to move the sender ( creator of the cluster ) to another subnet , but still within the same network as i am able to ping the private ip address from my PC 1. Ideally Server 1 will create the cluster ( being first to join ) and when i fire up the receiver on my local machine, it should join the cluster created by server 1.
    There is a firewall sitting between these 2 subnets.
    I've tried this using the default JChannel setting, but its not working. Cluster created, but PC1 cannot connect to the cluster, but instead formed its own cluster. They have the same cluster name.
    I've did further research, do i have to set up UDP multicast at the server as the sender and as the receiver, TCP unicast into the cluster created in the server? If so, i read i have to configure a protocol stack and in either xml or programmatically, and passed those into JChannel instantiation. With TCPPING for discovery ?
    Can anyone shed some light? Secondly since there is a firewall sitting between them, do i need to set up TCPGOSSIP?
    Best Regards,

    Cannot join cluster across 2 subnets

    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/javagroups/discussion/18794/
    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

     
  • CodeGuru

    CodeGuru - 2017-02-22

    Hi Bela,

    I am afraid i cannot disable the firewall.

    is TCPPING my only option? And what about TCPGOSSIP?

    Thank you for your time.

     
    • Bela Ban

      Bela Ban - 2017-02-22

      I just wanted you to disable the firewall to see if it is indeed the
      culprit. If disabling worked, you could enable it again and open ports
      for JGroups.

      Depending on FW rules, even TCP might not work.

      A common combo is TCP:MPING, but MPING requires multicasting - at least
      for the discovery phase.

      On 22/02/17 04:26, CodeGuru wrote:

      Hi Bela,

      I am afraid i cannot disable the firewall.

      is TCPPING my only option? And what about TCPGOSSIP?

      Thank you for your time.


      RE: [javagroups:discussion] Cannot join cluster across 2 subnets
      https://sourceforge.net/p/javagroups/discussion/18794/thread/e8dac0b7/?limit=25#bb22


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/javagroups/discussion/18794/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      Bela Ban, JGroups lead (http://www.jgroups.org)

       

Log in to post a comment.