6 Replies Latest reply on Oct 16, 2011 8:28 AM by Bela Ban

    couple questions

    Lin Ye Novice

      I got couple questions as follows:

       

      1. Currently we use jgroups.bind_addr to specify the binding address for JGroups configuration. In one of our use cases, we want to use double LANs and support automatic failorver when failure occurs in one of the LANs. Could JGroups support that? If so, how we configure it?
      2. Currently we use Infinispan to support high performance data access, if we need more determinism, could it potentially support it? Basically, we need low latency and jitter, is there a way to tune/tweak Infinispan for that?

       

      Thanks in advance for the feedbacks.

       

      Lin

        • 1. Re: couple questions
          Nikolay Kondrashov Newbie

          Hi,

           

          1. Use jgroups tcp/udp settings supplied in infinispan-code.jar. If udp make sure the udp traffic is allowed in your WAN. I have the similar task to provide failover over WAN, if one DC goes down another takes the primary role.

           

          #1

          -Djgroups.tcp.port=7800

          -Djgroups.tcp.address=127.0.0.1

          -Djava.net.preferIP4Stack=true

           

          #2

          -Djgroups.tcp.port=7801

          -Djgroups.tcp.address=127.0.0.1

          -Djava.net.preferIP4Stack=true

           

          in your jgroups-tcp-local.xml

             <TCPPING timeout="3000"

                      initial_hosts="127.0.0.1[7800],127.0.0.1[7801]"

                      port_range="5"

                      num_initial_members="2"

                      ergonomics="false"

                  />

           

          in your cache config

                  <transport clusterName="Cluster">

                      <properties>

                          <property name="configurationFile" value="./jgroups-tcp-local.xml"/>

                      </properties>

                  </transport>

          • 2. Re: couple questions
            Lin Ye Novice

            I didn't mean failover over WAN. For every node running datagrid instances, I need double LANs for reliability.

            • 3. Re: couple questions
              Galder Zamarreño Master

              Lin, I've forwarded your q on JGroups and double LANs to the JGroups guys.

               

              Wrt your 2nd question, not sure what you're after exactly. What kind of determinism are you missing right now? Whats your Infinispan configuration like?

              • 4. Re: couple questions
                Lin Ye Novice

                Galder,

                 

                Thanks for the response.

                 

                I don't have the number off hand at the moment, but I will collect the data later. In general, for the new use case, we care more about the jitter than the latency. Is any design in Infinispan targeted to determinism in addition to high performance?

                 

                Thanks,

                Lin

                • 5. Re: couple questions
                  Vladimir Blagojevic Master

                  Lin,

                   

                  1) This was on Bela's project map but I am not sure if it is implemted. He'll confirm.

                  2) These are mostly tuned on network/router/OS level. Bela will provide some direction for this as well!

                   

                  Regards,

                  Vladimir

                  • 6. Re: couple questions
                    Bela Ban Master

                    #1 Use IP bonding (on Linux), or something equivalent on other OSs

                    #2  No, there is no way you can influence jitter and latency. This is something that's inherent in ethernet/TCP/IP based networks, unless you build a custom bus (e.g. such as done in airplanes or the automotive industry).