1 Reply Latest reply on Sep 15, 2011 4:00 AM by emuckenhuber

    How to use "ha" profile in domain mode

    kalladasan

      Hi,

      I'm new to JBoss AS7 concepts,  we are evaluating JBoss AS7 (mainly focusing on its clustering capabilities). We are trying follow the instructions given in "https://www.jboss.org/dms/AS7/as7webinar/AS7-clustering-webinar.pdf"  for clustering.In those slides, we can see an instruction like

       

      Starting servers via managed domain:

                – Use “ha” profile from domain.xml

                          <server-group name="clustered-group" profile="ha">

                                         <socket-binding-group ref="ha-sockets"/>

                          </server-group>

      • $ ./bin/domain.sh

       

      We have a few doubts on this statement

       

           1. There are two profiles defined in the domain.xml

                               a) the default profile

                               b) and the ha profile

           2. In the server group defanition we can see server group for default and ha profile

       

          

      <server-groups>

              <server-group name="main-server-group" profile="default">

                  <jvm name="default">

                     <heap size="64m" max-size="512m"/>

                  </jvm>

                  <socket-binding-group ref="standard-sockets"/>

              </server-group>

       

              <server-group name="other-server-group" profile="ha">

                  <jvm name="default">

                     <heap size="64m" max-size="512m"/>

                  </jvm>

                  <socket-binding-group ref="ha-sockets"/>

              </server-group>

          </server-groups>

       

       

      Our doubts.

       

      A) how can we start the the AS in domain mode using "ha profile"

      B) Is the right way to comment the server group defanition for default profile under <server-groups> element?

       

      Please help

        • 1. Re: How to use "ha" profile in domain mode
          emuckenhuber

          Hi,

           

          you need to differentiate between domain.xml and host.xml. So in order to use the HA profile you would need to basically do:

           

          -) in domain.xml create a server-groups using the 'ha' profile (like the 'other-server-group')

          -) in host.xml define the servers you want to start locally and associate it with your 'ha' server-group

           

          So with the managed domain mode you don't start using the 'ha profile' you rather can have different profiles active at the same time, you just need to create and start the servers accordingly.

          1 of 1 people found this helpful