/
subsystem_4_0.xml
92 lines (91 loc) · 4.97 KB
/
subsystem_4_0.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2018, Red Hat Middleware LLC, and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<subsystem xmlns="urn:jboss:domain:modcluster:4.0">
<proxy name="default"
advertise="${modcluster.advertise:true}"
advertise-security-key="${modcluster.advertise-security-key:mysecurekey!}"
advertise-socket="modcluster"
auto-enable-contexts="${modcluster.auto-enable-contexts:true}"
balancer="${modcluster.balancer:mybalancer}"
listener="ajp"
excluded-contexts="${modcluster.excluded-contexts:contextA,contextB,contextC}"
flush-packets="${modcluster.flush-packets:true}"
flush-wait="${modcluster.flush-wait:10}"
load-balancing-group="${modcluster.load-balancing-group:mylbgroup}"
max-attempts="${modcluster.max-attempts:10}"
node-timeout="${modcluster.node-timeout:123}"
ping="${modcluster.ping:10}"
proxies="proxy1 proxy2"
proxy-url="${modcluster.proxy-url:/}"
smax="${modcluster.smax:2}"
socket-timeout="${modcluster.socket-timeout:20}"
ssl-context="mod_cluster-context"
sticky-session="${modcluster.sticky-session:true}"
sticky-session-force="${modcluster.sticky-session-force:false}"
sticky-session-remove="${modcluster.sticky-session-remove:false}"
stop-context-timeout="${modcluster.stop-context-timeout:10}"
ttl="${modcluster.ttl:1}"
worker-timeout="${modcluster.worker-timeout:2}"
session-draining-strategy="${modcluster.session-draining-strategy:ALWAYS}"
status-interval="${modcluster.status-interval:10}">
<dynamic-load-provider decay="${modcluster.dynamic-load-provider.decay:2}"
history="${modcluster.dynamic-load-provider.history:10}">
<load-metric type="sessions"
capacity="${modcluster.load-metric.capacity:1000.1}"
weight="${modcluster.load-metric.weight:2}"/>
<load-metric type="send-traffic"
capacity="512.2"
weight="3"/>
<load-metric type="receive-traffic"
capacity="1024.1"/>
<load-metric type="requests"
weight="4"/>
<load-metric type="mem"/>
<load-metric type="cpu"/>
<load-metric type="heap"/>
<load-metric type="busyness">
<property name="name1"
value="${property1:value1}"/>
<property name="name2"
value="${property2:value2}"/>
</load-metric>
<custom-load-metric class="SomeFakeLoadMetricClass1"
weight="${modcluster.custom-load-metric.weight:5}"
capacity="${modcluster.custom-load-metric.capacity:1.1}"/>
<custom-load-metric class="SomeFakeLoadMetricClass2"
capacity="${modcluster.custom-load-metric.capacity:1.1}"/>
<custom-load-metric class="SomeFakeLoadMetricClass3"
weight="${modcluster.custom-load-metric.weight:5}"/>
</dynamic-load-provider>
</proxy>
<proxy name="other"
listener="default">
<simple-load-provider factor="${modcluster.simple-load-provider.factor:15}"/>
<ssl ca-certificate-file="${modcluster.ca-certificate-file:/home/rhusar/client-keystore.jks}"
ca-revocation-url="${modcluster.ca-revocation-url:/home/rhusar/revocations}"
certificate-key-file="${modcluster.certificate-key-file:/home/rhusar/client-keystore.jks}"
cipher-suite="${modcluster.cipher-suite:SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA,SSL_RSA_WITH_RC4_128_MD5,SSL_RSA_WITH_RC4_128_SHA,SSL_RSA_WITH_3DES_EDE_CBC_SHA}"
key-alias="${modcluster.key-alias:mykeyalias}"
password="${modcluster.password:mypassword}"
protocol="${modcluster.protocol:TLSv1}"/>
</proxy>
</subsystem>