6 Replies Latest reply on Jan 6, 2012 5:45 PM by wdfink

    AS7 configure domain, what exactly has to altered in host.xml and domain.xml

    martineikelboom

      Could someone send me, or show me where to find, real examples of a working domain, with multiple servers. I would like to know how the host.xml and domain.xml is configured. I am not sure what and what not to alter in those files.

       

      I have tryed to follow the jboss documentation, but get the following error.

      Failed to start server (server-two): java.util.NoSuchElementException: No child ‘main-server-group’ exists

       

      What does this mean?

        • 1. Re: AS7 configure domain, what exactly has to altered in host.xml and domain.xml
          wdfink

          You have one domain controller (the one with domain-controller.local in the host.xml).

          This one must be started first and have a server-group (see domain.xml) main-server-group.

          Each host.xml define a server and join a server-group of the domain.

          you might have a look to https://docs.jboss.org/author/display/AS7/Domain+Setup

           

          If you have problems please attach the domain.xml and host.xml's and the appropirate server logfile.

          • 2. Re: AS7 configure domain, what exactly has to altered in host.xml and domain.xml
            martineikelboom

            Is it possible to set this up using 1 IP address?

            Or is it required to distinguish the servers on the basis of IP address?

            I have multiple standalone servers installed, and I want to configure 1 server as domain controller/host controller, and the others as slaves.

             

            Would be good to get an example, so I can see what is required to be different, altered, default, etc.

            • 3. Re: AS7 configure domain, what exactly has to altered in host.xml and domain.xml
              wdfink

              You might use the same or different IP addresses.

              If you look into a fresh installation there is an example of a domain configuration.

              If you start the domain there are 3 servers (you have to set auto-start true within the host.xml)

              The server start with a port-offset instead of using different ip addresses.

               

              The next host you have to change port-offset or use '-b' during start to set the IP address on the same machine.

              Helpful descriptions you will find in the domain setup document (link above)

              • 4. Re: AS7 configure domain, what exactly has to altered in host.xml and domain.xml
                martineikelboom

                I managed to get a domain configuration going. My understanding is that I now have 1 host controller, and this controls 3 servers, including itself. These servers reside on the same host, although they are called hosts in the configuration files.

                I would like to know then what is the definition of a host.

                My aim is:

                3 separate servers which I consider hosts. I want to link those hosts with the host controller. How do I configure that?

                if this is possible, then why the offset, if these hosts all have there own IP range?

                 

                I also miss documentation on High Availabilty for release 7.0.  Should I be refering to another version for similar concepts?

                • 5. Re: AS7 configure domain, what exactly has to altered in host.xml and domain.xml
                  martineikelboom

                  Has anybody got an answer to

                  1. why the offset if they are on different hosts with differing IP numbers. What is the difference to a cluster with offset IPnumbers and cluster on differing hosts

                  2. how does the host controller start and stop a slave server, or do you have to start these separatly?

                  3. doc HA version 7 location?  Is the version 5 HA comparable to version 7 in regards to HA concepts and configuration?

                  • 6. Re: AS7 configure domain, what exactly has to altered in host.xml and domain.xml
                    wdfink

                    1. You might use port-offset and/or different IP bindings. Functional there is no difference.

                      It might be easier to track cluster stuff if you have different IPs, otherwise it can be difficult to differing the instances

                      I would recommend to use one strategie per environment, i.e. IP binding with original ports for test and changed ports for production

                     

                    2. A host controller will start/stop instances by request it via domain management interface (HTTP or CLI).

                        The domain cotroller will be the master.

                        If you add a new host-controller to a domain (start a instance with domain.sh and have a remote domain address)

                        the host will connect the domain-controller, push the configuration and start the server configured in its host.xml

                     

                    3. The documentation is not ready yet, see https://docs.jboss.org/author/display/AS71/High+Availability+Guide

                         concept will be still based on JGroups but the configuration will be completely different