We will now provide a detailed example of a domain configuration. In this example, we include two separate host controller configurations, each one with a list of three nodes. You need two separate installations of WildFly 8, which can be executed on either two different machines or on the same machine. When running on the same machine, it's practical to assign a virtual IP address to your machines so that you don't have any port conflict in your domain.
The following figure shows our domain project:
The first thing we need to do is bind the network interfaces to a valid
inet address, both for the public and management interfaces. So, assuming that the first domain installation (master) will be bound to the
192.168.1.1, open the
host.xml file and change it accordingly, as follows: