3 Replies Latest reply on Apr 4, 2018 4:51 PM by claudio4j

    Multiple Domain Controllers on a single server

    chrisla

      I am looking to migrate several WebLogic domains over to JBoss 7. In WebLogic a "domain" is essentially an Admin Server, a number of JVMs which can be grouped into clusters, and a NodeManager for each server running a JVM. From what I've read about JBoss this would roughlymap to:

      Admin Server  -->   Domain Controller 
      JVM          
      -->   Instance
      Cluster       -->   Server Group (?)
      NodeManager   -->   Host Controller

      In WebLogic we have the flexibility to have any number of domains running on a host (resource permitting) using their own binaries/configs. I would imagine I could just create multiple Domain Controllers on the same host using different binaries/ports, but so far I've only found documentation that points to having only one Domain Controller per host. Is that the case?

        • 1. Re: Multiple Domain Controllers on a single server
          claudio4j

          You can have multiple jboss installations (different versions) or one jboss installation (same version) to launch different domains.

           

          For example, one installation to launch three domains, each on different IP address

           

          Installation binary: /opt/jboss-eap-7

           

          Domain 1:

          IP: 10.10.10.11

          /var/opt/jboss-domain-1

           

          Domain 2:

          IP: 10.10.10.12

          /var/opt/jboss-domain-2

           

          Domain 3:

          IP: 10.10.10.13

          /var/opt/jboss-domain-3

           

          You can use the following command line to launch each domain

          /opt/jboss-eap-7/bin/domain.sh -b $IP \

              -Djboss.domain.base.dir=$DC_DIR \

              -bmanagement $IP \

              -Djboss.bind.address.unsecure=$IP \

              -Djboss.bind.address.private=$IP

           

          The IP and DC_DIR are variables pointing to the different domains.

           

          Then, each slave host controller can be launched in a similar way, HC_IP is the ip address of the slave host controller, DC_IP is the ip address of the domain controller, HC_DIR is the slave domain directory

           

          ./domain.sh -b $HC_IP \

              -bmanagement $HC_IP \

              -Djboss.bind.address.unsecure=$HC_IP \

              -Djboss.domain.master.address=$DC_IP \

              -Djboss.domain.base.dir=$HC_DIR \

              -Djboss.bind.address.private=$HC_IP

          1 of 1 people found this helpful
          • 2. Re: Multiple Domain Controllers on a single server
            chrisla

            Thanks, Claudio. That's exactly what I expected.

             

            Seeing that you are passing only the IP addresses to the host-controller does raise a follow up question, though.. Can multiple host-controllers run on the same VM?

            • 3. Re: Multiple Domain Controllers on a single server
              claudio4j

              > Can multiple host-controllers run on the same VM ?

               

              Yes, either:

               

              1) use different IP addresses as outlined before or

              2) use the same IP address with different port numbers (port offset) for the http/native management interface and set the Socket Binding Port Offset for server group or server config,

              There is a port attribute on /host=master/core-service=management/management-interface=http-interface

              and there is a socket-binding-port-offset attribute on /server-group and /host=*/server-config