Mod cluster JBoss Configuration: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Overview=
EAP 7
<pre>
<subsystem xmlns="urn:jboss:domain:modcluster:2.0">
    <mod-cluster-config advertise-socket="modcluster" connector="ajp">
        <dynamic-load-provider>
            <load-metric type="cpu"/>
        </dynamic-load-provider>
    </mod-cluster-config>
</subsystem>
</pre>
=Multicast Advertise=
=Multicast Advertise=


Make sure the advertise multicast address and port as the same on the httpd nodes and JBoss nodes. Also make sure multicast propagates between httpd and the JBoss nodes (see [[#Multicast_Traffic]]).
Make sure the advertise multicast address and port as the same on the httpd nodes and JBoss nodes. Also make sure multicast propagates between httpd and the JBoss nodes (see [[#Multicast_Traffic]]).
Line 6: Line 19:
<font color=red>TODO: httpd configuration + JBoss configuration</font>
<font color=red>TODO: httpd configuration + JBoss configuration</font>


<font color=red>
=Static Proxy List=
 
<pre>
<subsystem xmlns="urn:jboss:domain:modcluster:2.0">
    <mod-cluster-config proxies="mod-cluster-proxy-1, mod-cluster-proxy-2" connector="ajp">
        <dynamic-load-provider> ...</dynamic-load-provider>
    </mod-cluster-config>
</subsystem>
 
...
 
<socket-binding-group ...>
    <outbound-socket-binding name="mod-cluster-proxy-1">
        <remote-destination host="1.2.3.4" port="6666"/>
    </outbound-socket-binding>
    <outbound-socket-binding name="mod-cluster-proxy-2">
        <remote-destination host="1.2.3.5" port="7777"/>
    </outbound-socket-binding>
</socket-binding-group>
</pre>
 
=Sticky Session=
 
<pre>
/subsystem=modcluster/mod-cluster-config=configuration/:write-attribute(name=sticky-session,value=true)
</pre>
 
For JBoss EAP 6.x, sticky session is "on" by default.
 
For more details on sticky session from a mod_cluster perspective, see [[Mod_cluster_Concepts#Sticky_Session|mod_cluster Concepts - Sticky Session]].


=Organizatorium=
=Organizatorium=
Line 12: Line 54:
AdvertiseGroup.
AdvertiseGroup.


Note that if JBoss AS is used and the -u startup switch is included in the AS startup command, the default AdvertiseGroupAddress is the value passed via the -u
Note that if JBoss AS is used and the -u startup switch is included in the AS startup command, the default AdvertiseGroupAddress is the value passed via the -u
 
</font>

Latest revision as of 14:14, 23 March 2017

Overview

EAP 7

<subsystem xmlns="urn:jboss:domain:modcluster:2.0">
    <mod-cluster-config advertise-socket="modcluster" connector="ajp">
        <dynamic-load-provider>
            <load-metric type="cpu"/>
        </dynamic-load-provider>
    </mod-cluster-config>
</subsystem>

Multicast Advertise

Make sure the advertise multicast address and port as the same on the httpd nodes and JBoss nodes. Also make sure multicast propagates between httpd and the JBoss nodes (see #Multicast_Traffic).

TODO: httpd configuration + JBoss configuration

Static Proxy List

<subsystem xmlns="urn:jboss:domain:modcluster:2.0">
    <mod-cluster-config proxies="mod-cluster-proxy-1, mod-cluster-proxy-2" connector="ajp">
        <dynamic-load-provider> ...</dynamic-load-provider>
    </mod-cluster-config>
</subsystem>

...

<socket-binding-group ...>
    <outbound-socket-binding name="mod-cluster-proxy-1">
        <remote-destination host="1.2.3.4" port="6666"/>
    </outbound-socket-binding>
    <outbound-socket-binding name="mod-cluster-proxy-2">
        <remote-destination host="1.2.3.5" port="7777"/>
    </outbound-socket-binding>
</socket-binding-group>

Sticky Session

/subsystem=modcluster/mod-cluster-config=configuration/:write-attribute(name=sticky-session,value=true)

For JBoss EAP 6.x, sticky session is "on" by default.

For more details on sticky session from a mod_cluster perspective, see mod_cluster Concepts - Sticky Session.

Organizatorium

AdvertiseGroup.

Note that if JBoss AS is used and the -u startup switch is included in the AS startup command, the default AdvertiseGroupAddress is the value passed via the -u