How can I add modcluster to my EAP 6 profile?

Solution Verified - Updated -

Environment

  • JBoss Enterprise Application Platform (EAP) 6.0.1

Issue

  • I'm running a non ha profile in domain mode (such as default) or a non ha standalone config. How can I add modcluster to my JBoss server config/profile?

Resolution

  • Add the modcluster subsystem to your desired profile:
        <profile name="default">
            <subsystem xmlns="urn:jboss:domain:modcluster:1.1">
                <mod-cluster-config advertise-socket="modcluster" connector="ajp">
                    <dynamic-load-provider>
                        <load-metric type="busyness"/>
                    </dynamic-load-provider>
                </mod-cluster-config>
            </subsystem>
  • Add the ajp connector to your default profile's web subsystem (only necessary if you use ajp for the connector in the modcluster subsystem above):
        <profile name="default">
            ...
            <subsystem xmlns="urn:jboss:domain:web:1.2" default-virtual-server="default-host" native="false">
                <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
                <connector name="ajp" protocol="AJP/1.3" scheme="http" socket-binding="ajp"/>
  • Add the mod-cluster advertise socket binding (only necessary if you use advertisement with mod-cluster instead of the proxy-list) along with the ajp binding if needed to your socket binding group:
        <socket-binding-group name="standard-sockets" default-interface="public">
            <socket-binding name="modcluster" port="0" multicast-address="224.0.1.105" multicast-port="23364"/>
            <socket-binding name="ajp" port="8009"/>

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.

Comments