Skip to content

Instantly share code, notes, and snippets.

@Karm
Last active December 23, 2015 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Karm/c0e4bcca1230bcf204e1 to your computer and use it in GitHub Desktop.
Save Karm/c0e4bcca1230bcf204e1 to your computer and use it in GitHub Desktop.
LoadModule slotmem_module modules/mod_slotmem.so
LoadModule manager_module modules/mod_manager.so
LoadModule proxy_cluster_module modules/mod_proxy_cluster.so
LoadModule advertise_module modules/mod_advertise.so
MemManagerFile "/tmp/httpd/cache/mod_cluster"
<IfModule manager_module>
Listen 999.1.88.9:6666
LogLevel debug
<VirtualHost 999.1.88.9:6666>
ServerName 999.1.88.9:6666
<Location />
Order deny,allow
Deny from all
Allow from all
</Location>
KeepAliveTimeout 60
MaxKeepAliveRequests 0
ServerAdvertise on
AdvertiseFrequency 5
ManagerBalancerName qacluster
AdvertiseGroup 224.0.5.9:23364
EnableMCPMReceive
CreateBalancers 0
<Location /mcm>
SetHandler mod_cluster-manager
Order deny,allow
Deny from all
Allow from all
</Location>
</VirtualHost>
</IfModule>
Listen 999.1.88.9:2081
<VirtualHost *:2081 >
ServerName 999.1.88.9:2081
ProxyRequests Off
ProxyPreserveHost On
LimitRequestFieldSize 20480
ProxyIOBufferSize 21504
ProxyPass / balancer://qacluster/
ProxyPassReverse / balancer://qacluster/
<Location />
Allow from all
</Location>
<Location /balancer-manager>
SetHandler balancer-manager
Allow from all
</Location>
<Proxy balancer://qacluster>
BalancerMember ajp://999.1.88.9:8009/ route=jboss-eap-6.1
BalancerMember ajp://999.1.88.9:8110/ route=jboss-eap-6.1-2
ProxySet lbmethod=byrequests
ProxySet stickysession=JSESSIONID|jsessionid
</Proxy>
</VirtualHost>
<subsystem xmlns="urn:jboss:domain:modcluster:1.1">
<mod-cluster-config excluded-contexts="tses, /, ROOT, manager, docs, examples, host-manager, admin-console, invoker, jbossws, jmx-console, juddi, web-console" advertise-socket="modcluster" connector="ajp">
<dynamic-load-provider>
<load-metric type="busyness"/>
</dynamic-load-provider>
</mod-cluster-config>
</subsystem>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment