Clustering in domain mode
Continuing from the previous sections, we will see how to configure a cluster using domain mode. The same concepts apply to the domain mode, which means that to get clustering capabilities, we need to choose between the ha
or full-ha
profile.
As you already know, in domain mode, all the available and configured profiles reside in a single file, domain.xml
. Each profile is then referenced by one or more server-groups.
To make it simple and clear, we belong to the default configuration and we will use the ha
profile.
Server-group configuration
Before we begin, as usual, we will create a custom folder to run our JBoss in domain mode and we will define the necessry server-group.
We will first launch the application server with the --admin-only
flag, so we can configure it without any running instances. We will then set all the configurations and restart the whole EAP with the --admin-only=false
flag, which is normal-running
.
Do as follows:
cd $JBOSS_HOME cp -a domain master...