Skip to content

Instantly share code, notes, and snippets.

@rhusar
Last active October 13, 2015 03:58
Show Gist options
  • Save rhusar/4135976 to your computer and use it in GitHub Desktop.
Save rhusar/4135976 to your computer and use it in GitHub Desktop.
PROPOSED XML
<subsystem xmlns:urn="jboss:domain:modcluster:3.0">
<sticky-session(s?) force="false"
remove="false"/>
<advertise socket-binding="mod_cluster-advertise"
security-key="changeit"/>
<proxies proxy-url="string"
outbound-socket-bindings="proxybinding1 proxybinding2 proxybinding3"
load-balancing-group="groupA"
ping="10"
node-timeout="-1"
socket-timeout="20"
worker-timeout="1"
max-attemps="1"
flush-packets="false"
flush-wait="-1"
smax="3"
ttl="60"
balancer="string"
ssl="ModClusterSecurityRealm"/>
<contexts auto-enable="true"
stop-timeout="10"
excluded="ROOT console"
session-draining-strategy="DEFAULT"/>
<!-- and one of the following: -->
<simple-load-provider factor="15"/>
<dynamic-load-provider decay="2" history="10">
<load-metric type="sessions" weight="2" capacity="1000.0"/>
<load-metric type="send-traffic" weight="3" capacity="512.0"/>
<load-metric type="receive-traffic" capacity="1024.0"/>
<load-metric type="requests" capacity="1000.0"/>
<load-metric type="mem"/>
<load-metric type="cpu"/>
<load-metric type="heap"/>
<load-metric type="busyness">
<property name="name" value="value"/>
<property name="name2" value="value2"/>
</load-metric>
<custom-load-metric class="org.jboss.modcluster.SomeFakeLoadMetricClass" module="org.mymodule:main" weight="5"/>
</dynamic-load-provider>
</subsystem>
excludedContexts -- needs different mechanism than strings
stopContextTimeoutUnit -- seconds assumed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment