Domain.xml: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:


The <tt><server-group></tt> section defines the [[WildFly Domain Mode Concepts#Server_Group|server groups]] for this management domain.
The <tt><server-group></tt> section defines the [[WildFly Domain Mode Concepts#Server_Group|server groups]] for this management domain.
The ''server group'' definition: [JBoss 7 Domain#ServerGroup].


The server group configuration specifies the following mandatory attributes:  
The server group configuration specifies the following mandatory attributes:  
* ''name'' of the server group
* the ''name'' of the server group
* the server group ''profile''
* the server group ''profile''
* the ''socket binding group'' for the servers in the group (this value can be overridden in {{host.xml}}).  
* the ''socket binding group'' for the servers in the group. This value can be overridden in [[host.xml]].


It also can specify optional attributes:  
It also can specify optional attributes:  

Revision as of 18:59, 12 October 2016

Internal

Overview

domain.xml is the main configuration file for a managed domain, containing various profiles to be pushed to different servers belonging to the server groups managed by the domain. Only the domain master reads this file. RedHat documentation mentions that domain.xml can be removed on other domain members. However, it should not be removed from the backup domain controller, if the domain is configured to support HA. For more details see subordinate host controller post-install configuration - optionally remove domain.xml. The file's location is $JBOSS_HOME/domain/configuration/domain.xml.

Sections

<server-group>

The <server-group> section defines the server groups for this management domain.

The server group configuration specifies the following mandatory attributes:

  • the name of the server group
  • the server group profile
  • the socket binding group for the servers in the group. This value can be overridden in host.xml.

It also can specify optional attributes:

  • jvm
  • system-properties
  • deployments. For more on deployments, see [JBoss 7 Deployment#DomainLevelDeployments].

{{{ <domain>

   ...
   <server-groups>
       <server-group name="agents" profile="ha">
           <jvm name="default">
               <heap size="1000m" max-size="1000m"/>
               <permgen max-size="256m"/>
           </jvm>
           <socket-binding-group ref="ha-sockets"/>
           <deployments>
               <deployment name="something.ear" runtime-name="something.ear"/>
           </deployments>
       </server-group>
       <server-group name="claims" profile="full-ha">
           <jvm name="default">
               <heap size="1000m" max-size="1000m"/>
               <permgen max-size="256m"/>
           </jvm>
           <socket-binding-group ref="full-ha-sockets"/>
       </server-group>
   </server-groups>

</domain> }}}