Mod cluster JBoss Configuration: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
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]]). |
Revision as of 14:02, 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
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