Java Reference
In-Depth Information
Starting a cluster of domain nodes
In order to configure a cluster running on a domain of server nodes, you need to configure
the main domain.xml file for your domain controller. Then, for every WildFly host that
is a part of the cluster, you need to provide a host.xml configuration file, which de-
scribes the configuration of a single-server distribution.
The domain controller configuration
The domain.xml file is located at JBOSS_HOME/domain/configuration/ . It in-
cludes the main domain configuration, which is shared by all server instances. In the do-
main.xml file, we will define the server group configurations specifying a profile that is
compatible with clustering. Out of the box, a WildFly domain ships with four different pro-
files:
default : This profile has the support of Java EE Web Profile and some exten-
sions, such as RESTful web services, or support for Enterprise JavaBeans ( EJB )
3 remote invocations
full : This profile supports all the default subsystems contained in the default
profile and the messaging subsystem
ha : This profile corresponds to the default profile extended with clustering
capabilities
full-ha : This is the full profile with clustering capabilities
So, first specify a cluster-aware profile for your server groups in your domain.xml file.
In our example, we have adopted the full-ha profile for both the server groups so that
you can run the full Java EE stack on all your domain servers:
<server-groups>
<server-group name="main-server-group" profile="full-ha">
<jvm name="default">
<heap size="64m" max-size="512m"/>
</jvm>
<socket-binding-group ref=" full-ha-sockets "/>
</server-group>
<server-group name="other-server-group"
profile="full-ha">
<jvm name="default">
<heap size="64m" max-size="512m"/>
Search WWH ::




Custom Search