-
1. Re: Multiple Domain Controllers on a single server
claudio4j Apr 3, 2018 11:38 AM (in response to chrisla)1 of 1 people found this helpfulYou 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
-
2. Re: Multiple Domain Controllers on a single server
chrisla Apr 4, 2018 2:27 PM (in response to claudio4j)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 Apr 4, 2018 4:51 PM (in response to chrisla)> 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