4 Replies Latest reply on Sep 16, 2013 3:15 AM by nazia24

    Runtime Parameters for UDP Clustering

    janus1822

      Hi All ,

       

      What are all the runtime parameters for UDP stack clustering ..?

        • 1. Re: Runtime Parameters for UDP Clustering
          rhusar

          UDP is the default stack, you can find parameters to tune on the JGroups wiki

           

          http://www.jgroups.org/manual-3.x/html/protlist.html#UDP

           

          (Note that you have to use AS7 specific xml configuration.)

          • 2. Re: Runtime Parameters for UDP Clustering
            erasmomarciano

            Hi

             

            You check domain.xml or standalone-full-ha.xml

             

            you will find

             

            <subsystem xmlns="urn:jboss:domain:jgroups:1.1" default-stack="udp">

                            <stack name="udp">

                                <transport type="UDP" socket-binding="jgroups-udp"/>

                                <protocol type="PING"/>

                                <protocol type="MERGE2"/>

                                <protocol type="FD_SOCK" socket-binding="jgroups-udp-fd"/>

                                <protocol type="FD"/>

                                <protocol type="VERIFY_SUSPECT"/>

                                <protocol type="BARRIER"/>

                                <protocol type="pbcast.NAKACK"/>

                                <protocol type="UNICAST2"/>

                                <protocol type="pbcast.STABLE"/>

                                <protocol type="pbcast.GMS"/>

                                <protocol type="UFC"/>

                                <protocol type="MFC"/>

                                <protocol type="FRAG2"/>

                                <protocol type="RSVP"/>

                            </stack>

             

            <stack name="tcp">

                                <transport type="TCP" socket-binding="jgroups-tcp"/>

                                <protocol type="MPING" socket-binding="jgroups-mping"/>

                                <protocol type="MERGE2"/>

                                <protocol type="FD_SOCK" socket-binding="jgroups-tcp-fd"/>

                                <protocol type="FD"/>

                                <protocol type="VERIFY_SUSPECT"/>

                                <protocol type="BARRIER"/>

                                <protocol type="pbcast.NAKACK"/>

                                <protocol type="UNICAST2"/>

                                <protocol type="pbcast.STABLE"/>

                                <protocol type="pbcast.GMS"/>

                                <protocol type="UFC"/>

                                <protocol type="MFC"/>

                                <protocol type="FRAG2"/>

                                <protocol type="RSVP"/>

                            </stack>

            • 3. Re: Runtime Parameters for UDP Clustering
              pdegave

              Jboss by default use udp

               

              A) For Udp make use of following :

               

              <stack name="udp">

                              <transport type="UDP" socket-binding="jgroups-udp"/>

                            

                           <protocol type="PING"/>

                             

                             <protocol type="MERGE3"/>

                           

                            <protocol type="FD_SOCK" socket-binding="jgroups-udp-fd"/>

                         

                             <protocol type="FD"/>

                         

                             <protocol type="VERIFY_SUSPECT"/>

                        

                            <protocol type="pbcast.NAKACK"/>

                      

                            <protocol type="UNICAST2"/>

                    

                            <protocol type="pbcast.STABLE"/>

                  

                             <protocol type="pbcast.GMS"/>

                 

                            <protocol type="UFC"/>

               

                             <protocol type="MFC"/>

               

                             <protocol type="FRAG2"/>

               

                             <protocol type="RSVP"/>

               

                         </stack>

               

               

              B) For tcp make use of following :  If u want to use TCP then make default stack change to <subsystem xmlns="urn:jboss:domain:jgroups:1.1" default-stack="udp"> to <subsystem xmlns="urn:jboss:domain:jgroups:1.1" default-stack="tcp">

               

              <stack name="tcp">

               

                              <transport type="TCP" socket-binding="jgroups-tcp" diagnostics-socket-binding="jgroups-diagnostics"/>

               

                              <protocol type="TCPPING">

               

                                  <property name="initial_hosts">10.10.10.10[7600],10.10.10.10[7600]</property>

               

                                  <property name="num_initial_members">2</property>

               

                                  <property name="port_range">0</property>

               

                                  <property name="timeout">2000</property>

               

                              </protocol>

               

                              <protocol type="MERGE2"/>

               

                              <protocol type="FD_SOCK" socket-binding="jgroups-tcp-fd"/>

               

                              <protocol type="FD"/>

               

                              <protocol type="VERIFY_SUSPECT"/>

               

                              <protocol type="BARRIER"/>

               

                              <protocol type="pbcast.NAKACK"/>

               

                              <protocol type="UNICAST2"/>

               

                              <protocol type="pbcast.STABLE"/>

               

                              <protocol type="pbcast.GMS"/>

               

                              <protocol type="UFC"/>

               

                              <protocol type="MFC"/>

               

                              <protocol type="FRAG2"/>

               

                          </stack>

              • 4. Re: Runtime Parameters for UDP Clustering
                nazia24

                Hi Senthil,

                 

                           you can specify the runtime parameter for udp clustering as

                 

                          ./standalone.sh -c standalone-ha.xml -Djboss.default.multicast.address=234.x.x.x

                                                             or

                             ./standalone.sh -c standalone-ha.xml -u 10.10.10.10

                                                            

                 

                          -u <value>, -u=<value>            Set system property  jboss.default.multicast.address to the  given value