6 Replies Latest reply on Aug 19, 2015 1:41 PM by stephenklau

    Can I replace jboss 6.3 jgroup with datagrid jgroup?

    stephenklau

      Hi,

       

      We are using datagrid 6.4 with Jboss EAP 6.3.  Currently, we have one jgroup configuration in the jboss configuration file and another jgroup configuration for the datagrid.  Is it possible to replace the jgroup in Jboss with the one from datagrid so we can use just one set of configuration?

        • 1. Re: Can I replace jboss 6.3 jgroup with datagrid jgroup?
          andresperez0828

          Hi stephen lau,

           

           

          Would You  pass me your JDG Jgroups configuration, i have a problem posted "https://developer.jboss.org/thread/261836", if you could help me, would be great,

           

           

          best regards,

          • 2. Re: Can I replace jboss 6.3 jgroup with datagrid jgroup?
            andresperez0828

            Hi Stephen ,

             

            I have fixed my problem,

             

            You can overwrite de Jgroups configuration adding any properties in your selected stack so:

             

            <subsystem xmlns="urn:infinispan:server:jgroups:6.1" default-stack="${jboss.default.jgroups.stack:udp}">

                        <stack name="udp">

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

              <property name="ucast_recv_buf_size">20m</property>

              <property name="mcast_recv_buf_size">25m</property>

              <property name="mcast_send_buf_size">640k</property>

              </transport>

                            <protocol type="PING"/>

                            <protocol type="MERGE3"/>

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

                            <protocol type="FD_ALL"/>

                            <protocol type="VERIFY_SUSPECT"/>

                            <protocol type="pbcast.NAKACK2"/>

                            <protocol type="UNICAST3"/>

                            <protocol type="pbcast.STABLE"/>

                            <protocol type="pbcast.GMS"/>

                            <protocol type="UFC"/>

                            <protocol type="MFC"/>

                            <protocol type="FRAG2"/>

                        </stack>

             

            this is the way like i know to do it, I searched about overwrite de jgroups.xml in JDG but I found not something. I hopefully this will serve.

            • 3. Re: Can I replace jboss 6.3 jgroup with datagrid jgroup?
              sebastian.laskawiec

              Exactly, Andreas  is correct.

               

              However if you are using the Library Mode, you might be interested in this: 26.2. Configure JGroups (Library Mode)

              • 4. Re: Can I replace jboss 6.3 jgroup with datagrid jgroup?
                stephenklau

                I am using the Library mode with Jboss.   I used the default JGroup xml provided in the infinispan jar file as a starting point and modified the setting according to our environments.  The Jboss server has its own JGroup configuration.  So we are running two instances of JGroup - one for JDG and one for Jboss.

                • 5. Re: Can I replace jboss 6.3 jgroup with datagrid jgroup?
                  wdfink

                  There are a lot of things to consider.

                  If you change the JGroups bits in EAP you loose the support for this.

                  And there is a reason to separate this as JDG has different requirements as EAP, also you don't want to mess each cluster with different messages which need to be dropped.

                  So I recommend to use the JDG modules for EAP, set a dependency for your application and keep the mcast addresses different for EAP and JDG cluster.

                  • 6. Re: Can I replace jboss 6.3 jgroup with datagrid jgroup?
                    stephenklau

                    Thanks.  We will be moving forward by using JDG modules for EAP and keep it separate from the EAP JGroup.