How to set the cluster name in JBoss EAP 7.1
Environment
Red Hat JBoss Enterprise Application Platform (EAP) 7.1
Issue
- How to set the cluster name in JBoss EAP 7.1
Resolution
Set the attribute cluster on the default channel in the jgroups subsystem
Example CLI command for standalone mode:
/subsystem=jgroups/channel=ee:write-attribute(name=cluster,value=cluster1)
Example CLI command for domain mode:
/profile=full-ha/subsystem=jgroups/channel=ee:write-attribute(name=cluster,value=cluster1)
The resulting JBoss profile xml looks like:
<subsystem xmlns="urn:jboss:domain:jgroups:5.0">
<channels default="ee">
<channel name="ee" stack="udp" cluster="cluster1"/>
</channels>
Related Solutions
Components
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.