Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

/swhome/integral/jboss/standalone/configuration

#### standalone-full-ha.xml - ajp/modcluster

<?xml version='1.0' encoding='UTF-8'?>

<server xmlns="urn:jboss:domain:16.0">

<extensions>
<extension module="org.jboss.as.modcluster"/>
</extensions>


<profile>
<subsystem xmlns="urn:jboss:domain:modcluster:5.0">
<proxy name="default" advertise-socket="modcluster" listener="ajp" proxies="shlvproxy1 shlvproxy2">
<dynamic-load-provider>
<load-metric type="cpu"/>
</dynamic-load-provider>
</proxy>
</subsystem>

<subsystem xmlns="urn:jboss:domain:undertow:12.0" default-server="default-server" default-virtual-
host="default-host" default-servlet-con tainer="default" default-security-domain="other" statistics-
enabled="${wildfly.undertow.statistics-enabled:${wildfly.statistics-enabled:false}}">
<buffer-cache name="default"/>
<server name="default-server">
<ajp-listener name="ajp" socket-binding="ajp"/>
<http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
<https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" enable-
http2="true"/>
<host name="default-host" alias="localhost">
<location name="/" handler="welcome-content"/>
<http-invoker security-realm="ApplicationRealm"/>
</host>
</server>
<servlet-container name="default">
<jsp-config trim-spaces="true" tag-pooling="false" mapped-file="false" generate-strings-as-char-
arrays="true" x-powered-by="false "/>
<websockets/>
</servlet-container>
</subsystem>
</profile>

<socket-binding-group name="standard-sockets" default-interface="public" port-
offset="${jboss.socket.binding.port-offset:0}">
<socket-binding name="ajp" port="${jboss.ajp.port:8009}"/>
<socket-binding name="modcluster" multicast-address="${jboss.modcluster.multicast.address:224.0.1.105}"
multicast-port="23364"/>
<outbound-socket-binding name="shlvproxy1">
<remote-destination host="10.191.1.77" port="8081"/>
</outbound-socket-binding>
<outbound-socket-binding name="shlvproxy2">
<remote-destination host="10.191.1.78" port="8081"/>

file:///D/_ThaoLe/shlv_user_guide/jboss_7_modcluster.txt[4/14/2023 10:09:52 PM]


</outbound-socket-binding>
</socket-binding-group>
</server>

+++++++++++++++++++++
+ 10.191.1.77/24 +
+++++++++++++++++++++
/swhome/integral/jbcs-httpd24-2.4/httpd/conf.d
### mod_cluster.conf
LoadModule proxy_cluster_module modules/mod_proxy_cluster.so
LoadModule cluster_slotmem_module modules/mod_cluster_slotmem.so
LoadModule manager_module modules/mod_manager.so
LoadModule advertise_module modules/mod_advertise.so

MemManagerFile /swhome/integral/jbcs-httpd24-2.4/httpd/cache/mod_cluster

<IfModule manager_module>
Listen 8081
Maxcontext 10
Maxnode 40
Maxhost 40

<VirtualHost *:8081>
DirectoryIndex disabled
<Directory />
Require all granted
#Allow from all
#Require ip 127.0.0.1
</Directory>

ManagerBalancerName mybalancer
MaxKeepAliveRequests 3600
KeepAliveTimeout 3600

#AdvertiseGroup 224.0.1.105:23364
#AdvertiseFrequency 5
ServerAdvertise Off
EnableMCPMReceive Off

<Location /mod_cluster_manager>
SetHandler mod_cluster-manager
#Require ip 127.0.0.1
#Allow from all
Require all granted
</Location>
ErrorLog "|/swhome/integral/jbcs-httpd24-2.4/httpd/sbin/rotatelogs -l
/swlog/integral/httpd/mod_cluster/mod_cluster_error.%Y.%m.%d.log 5M"
CustomLog "|/swhome/integral/jbcs-httpd24-2.4/httpd/sbin/rotatelogs -l
/swlog/integral/httpd/mod_cluster/mod_cluster.%Y.%m.%d.log 86400" common
</VirtualHost>
</IfModule>

file:///D/_ThaoLe/shlv_user_guide/jboss_7_modcluster.txt[4/14/2023 10:09:52 PM]


+++++++++++++++++++++
+ 10.191.1.78/24 +
+++++++++++++++++++++
/swhome/integral/jbcs-httpd24-2.4/httpd/conf.d
### mod_cluster.conf

MemManagerFile /swhome/integral/jbcs-httpd24-2.4/httpd/cache/mod_cluster

<IfModule manager_module>
Listen 8081
Maxcontext 10
Maxnode 40
Maxhost 40
<VirtualHost *:8081>
DirectoryIndex disabled
<Directory />
Require all granted
#Allow from all
#Require ip 127.0.0.1
</Directory>

ManagerBalancerName mybalancer
MaxKeepAliveRequests 3600
KeepAliveTimeout 3600

AdvertiseGroup 224.0.1.105:23364
AdvertiseFrequency 5
ServerAdvertise Off
EnableMCPMReceive On

<Location /mod_cluster_manager>
SetHandler mod_cluster-manager
#Require ip 127.0.0.1
#Order allow,deny
#Allow from all
Require all granted
</Location>
ErrorLog "|/swhome/integral/jbcs-httpd24-2.4/httpd/sbin/rotatelogs -l
/swlog/integral/httpd/mod_cluster/mod_cluster_error.%Y.%m.%d.log 5M"
CustomLog "|/swhome/integral/jbcs-httpd24-2.4/httpd/sbin/rotatelogs -l
/swlog/integral/httpd/mod_cluster/mod_cluster.%Y.%m.%d.log 86400" common
</VirtualHost>
</IfModule>

file:///D/_ThaoLe/shlv_user_guide/jboss_7_modcluster.txt[4/14/2023 10:09:52 PM]

You might also like