/
jboss-as-mod-cluster_1_2.xsd
284 lines (268 loc) · 12.4 KB
/
jboss-as-mod-cluster_1_2.xsd
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2011, Red Hat, Inc., 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.
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:jboss:domain:modcluster:1.2"
xmlns="urn:jboss:domain:modcluster:1.2"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="1.0"
>
<xs:element name="subsystem" type="subsystemType"/>
<xs:complexType name="subsystemType">
<xs:all>
<xs:element name="mod-cluster-config" type="mod-cluster-configType" minOccurs="0" maxOccurs="1"/>
</xs:all>
</xs:complexType>
<xs:complexType name="mod-cluster-configType">
<xs:sequence>
<!-- Simple load-provider or a dynamic one -->
<xs:choice minOccurs="0">
<xs:element name="simple-load-provider" type="simple-load-providerType"/>
<xs:element name="dynamic-load-provider" type="dynamic-load-providerType"/>
</xs:choice>
<xs:element name="ssl" type="sslType" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<!-- Get the actual advertiseGroupAddress / advertisePort from advertiseSocket -->
<xs:attribute name="advertise-socket" type="xs:string" use="optional"/>
<xs:attribute name="proxy-list" type="xs:string" use="optional"/>
<xs:attribute name="proxy-url" type="xs:string" use="optional"/>
<xs:attribute name="balancer" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>The balancer name. All nodes of a cluster have to use the same value.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="advertise" type="xs:boolean" use="optional" default="true"/>
<xs:attribute name="advertise-security-key" type="xs:string" use="optional"/>
<xs:attribute name="sticky-session-force" type="xs:boolean" use="optional" default="true"/>
<xs:attribute name="sticky-session-remove" type="xs:boolean" use="optional" default="false"/>
<xs:attribute name="sticky-session" type="xs:boolean" use="optional" default="true"/>
<!-- mod_cluster parameters that describe node behaviour -->
<xs:attribute name="excluded-contexts" type="xs:string" use="optional" default="ROOT,invoker,jbossws,juddi,console" />
<xs:attribute name="auto-enable-contexts" type="xs:boolean" use="optional" default="true" />
<xs:attribute name="stop-context-timeout" type="xs:int" use="optional" default="10">
<xs:annotation>
<xs:documentation>The amount of time in seconds for which to wait for clean shutdown of a context.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="socket-timeout" type="xs:int" use="optional" default="20">
<xs:annotation>
<xs:documentation>Number of seconds to wait for a response from an httpd proxy to MCMP commands before timing out, and flagging the proxy as in error.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="node-timeout" type="xs:int" use="optional" default="-1">
<xs:annotation>
<xs:documentation>Timeout (in seconds) for proxy connections to a node. That is the time mod_cluster will wait for the back-end response before returning error.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="max-attempts" type="xs:int" use="optional" default="1">
<xs:annotation>
<xs:documentation>Number of times an httpd proxy will attempt to send a given request to a worker before giving up.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="flush-packets" type="xs:boolean" use="optional" default="false">
<xs:annotation>
<xs:documentation>Enables/disables packet flushing.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="flush-wait" type="xs:int" use="optional" default="-1">
<xs:annotation>
<xs:documentation>Time to wait before flushing packets in milliseconds.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ping" type="xs:int" use="optional" default="10">
<xs:annotation>
<xs:documentation>Time (in seconds) in which to wait for a pong answer to a ping.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="smax" type="xs:int" use="optional" default="-1">
<xs:annotation>
<xs:documentation>Soft maximum idle connection count.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ttl" type="xs:int" use="optional" default="-1">
<xs:annotation>
<xs:documentation>Time to live (in seconds) for idle connections above smax.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="load-balancing-group" type="xs:string" use="optional" >
<xs:annotation>
<xs:documentation>Load balancing group</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="connector" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The name of Undertow listener that mod_cluster reverse proxy will connect to.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="session-draining-strategy" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Session draining strategy used during undeployment of a web application.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="worker-timeout" type="xs:int" use="optional">
<xs:annotation>
<xs:documentation>
Number of seconds to wait for a worker to become available to handle a request. When no workers of a
balancer are usable, mod_cluster will retry after a while (workerTimeout/100). That is timeout in the
balancer mod_proxy documentation. A value of -1 indicates that the HTTPd will not wait
for a worker to be available and will return an error if none is available.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<!-- general SSL definitions -->
<xs:complexType name="sslType">
<xs:annotation>
<xs:documentation>
Configuration information for one SSL configuration.
sslCertificateEncodingAlgorithm (default value only)
sslKeyStoreType/sslTrustStoreType (JKS: default value only)
sslKeyStoreProvider/sslTrustStoreProvider (only default value).
sslTrustAlgorithm (only default value).
sslTrustMaxCertLength (5: default value only)
</xs:documentation>
</xs:annotation>
<xs:attribute name="key-alias" type="xs:string" use="optional" default="jboss">
<xs:annotation>
<xs:documentation>sslKeyAlias The alias of the key holding the client certificates in the key store.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="password" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>
sslKeyStorePassword/sslTrustStorePassword Password granting access to the key store and trust store.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="certificate-key-file" type="xs:string" use="optional" default="${user.home}/.keystore">
<xs:annotation>
<xs:documentation>
sslKeyStore: That is the keystore name here.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="cipher-suite" type="xs:string" use="optional" default="ALL">
<xs:annotation>
<xs:documentation>
sslCiphers: comma separated list of encryption ciphers the configuration is allowed to use, that MUST NOT be
the JVM default in of JSSE as contains weak ciphers.
that is SSLCipherSuite when using OpenSSL (APR).
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="protocol" default="ALL" type="SSlProtocolType">
<xs:annotation>
<xs:documentation>
sslProtocol: Overrides the default SSL socket protocol.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ca-certificate-file" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>
sslTrustStore location of the file containing the trust store.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ca-revocation-url" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>
sslCrlFile A file or URL to get the revocation list.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:simpleType name="SSlProtocolType">
<xs:restriction base="xs:token">
<xs:enumeration value="SSLv2"/>
<xs:enumeration value="SSLv3"/>
<xs:enumeration value="TLSv1"/>
<xs:enumeration value="SSLv2+SSLv3"/>
<xs:enumeration value="ALL"/>
</xs:restriction>
</xs:simpleType>
<!-- <simple-load-provider load="1"/> -->
<xs:complexType name="simple-load-providerType">
<xs:attribute name="factor" type="xs:int" use="optional" default="1" />
</xs:complexType>
<!-- Something like.
<dynamic-load-provider history="10" decay="2">
<load-metric type="cpu" weight="2" capacity="1"/>
<load-metric type="sessions" weight="1" capacity="512"/>
<load-metric type="busyness">
<property name="name1" value="value1"/>
<property name="name2" value="value2"/>
</load-metric>
...
</dynamic-load-provider>
-->
<xs:complexType name="dynamic-load-providerType">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="load-metric" type="load-metricType"/>
<xs:element name="custom-load-metric" type="custom-load-metricType"/>
</xs:choice>
<xs:attribute name="history" type="xs:int" use="optional" default="9" />
<xs:attribute name="decay" type="xs:int" use="optional" default="2"/>
</xs:complexType>
<xs:complexType name="common-load-metricType" abstract="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="property" type="propertyType"/>
</xs:choice>
<xs:attribute name="weight" type="xs:int" use="optional" default="1"/>
<xs:attribute name="capacity" type="xs:double" use="optional" default="1.0"/>
</xs:complexType>
<xs:complexType name="load-metricType">
<xs:complexContent>
<xs:extension base="common-load-metricType">
<xs:attribute name="type" type="loadMetricEnum" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="custom-load-metricType">
<xs:complexContent>
<xs:extension base="common-load-metricType">
<xs:attribute name="class" type="xs:string" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="loadMetricEnum">
<xs:restriction base="xs:token">
<xs:enumeration value="cpu"/>
<xs:enumeration value="mem">
<xs:annotation>
<xs:documentation>Deprecated.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="heap"/>
<xs:enumeration value="sessions"/>
<xs:enumeration value="requests"/>
<xs:enumeration value="send-traffic"/>
<xs:enumeration value="receive-traffic"/>
<xs:enumeration value="busyness"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="propertyType">
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="value" type="xs:string" use="required"/>
</xs:complexType>
</xs:schema>