PageRenderTime 47ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 0ms

/wildfly-10.1.0.Final/docs/schema/jboss-as-mod-cluster_1_2.xsd

https://gitlab.com/mucadoo/geo-marvel
XML Schema | 277 lines | 262 code | 15 blank | 0 comment | 0 complexity | 5c09af8a74c054954b02296db8515c6d MD5 | raw file
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ JBoss, Home of Professional Open Source.
  4. ~ Copyright 2011, Red Hat, Inc., and individual contributors
  5. ~ as indicated by the @author tags. See the copyright.txt file in the
  6. ~ distribution for a full listing of individual contributors.
  7. ~
  8. ~ This is free software; you can redistribute it and/or modify it
  9. ~ under the terms of the GNU Lesser General Public License as
  10. ~ published by the Free Software Foundation; either version 2.1 of
  11. ~ the License, or (at your option) any later version.
  12. ~
  13. ~ This software is distributed in the hope that it will be useful,
  14. ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. ~ Lesser General Public License for more details.
  17. ~
  18. ~ You should have received a copy of the GNU Lesser General Public
  19. ~ License along with this software; if not, write to the Free
  20. ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  21. ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  22. -->
  23. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  24. targetNamespace="urn:jboss:domain:modcluster:1.2"
  25. xmlns="urn:jboss:domain:modcluster:1.2"
  26. elementFormDefault="qualified"
  27. attributeFormDefault="unqualified"
  28. version="1.2">
  29. <xs:element name="subsystem" type="subsystemType"/>
  30. <xs:complexType name="subsystemType">
  31. <xs:all>
  32. <xs:element name="mod-cluster-config" type="mod-cluster-configType" minOccurs="0" maxOccurs="1"/>
  33. </xs:all>
  34. </xs:complexType>
  35. <xs:complexType name="mod-cluster-configType">
  36. <xs:sequence>
  37. <!-- Simple load-provider or a dynamic one -->
  38. <xs:choice minOccurs="0">
  39. <xs:element name="simple-load-provider" type="simple-load-providerType"/>
  40. <xs:element name="dynamic-load-provider" type="dynamic-load-providerType"/>
  41. </xs:choice>
  42. <xs:element name="ssl" type="sslType" minOccurs="0" maxOccurs="1"/>
  43. </xs:sequence>
  44. <!-- Get the actual advertiseGroupAddress / advertisePort from advertiseSocket -->
  45. <xs:attribute name="advertise-socket" type="xs:string" use="optional"/>
  46. <xs:attribute name="proxy-list" type="xs:string" use="optional"/>
  47. <xs:attribute name="proxy-url" type="xs:string" use="optional" default="/">
  48. <xs:annotation>
  49. <xs:documentation>Value which will be prepended to the URL of MCMP commands.</xs:documentation>
  50. </xs:annotation>
  51. </xs:attribute>
  52. <xs:attribute name="balancer" type="xs:string" use="optional">
  53. <xs:annotation>
  54. <xs:documentation>The balancer name. All nodes of a cluster have to use the same value.</xs:documentation>
  55. </xs:annotation>
  56. </xs:attribute>
  57. <xs:attribute name="advertise" type="xs:boolean" use="optional" default="true"/>
  58. <xs:attribute name="advertise-security-key" type="xs:string" use="optional"/>
  59. <xs:attribute name="sticky-session-force" type="xs:boolean" use="optional" default="true"/>
  60. <xs:attribute name="sticky-session-remove" type="xs:boolean" use="optional" default="false"/>
  61. <xs:attribute name="sticky-session" type="xs:boolean" use="optional" default="true"/>
  62. <!-- mod_cluster parameters that describe node behaviour -->
  63. <xs:attribute name="excluded-contexts" type="xs:string" use="optional"/>
  64. <xs:attribute name="auto-enable-contexts" type="xs:boolean" use="optional" default="true"/>
  65. <xs:attribute name="stop-context-timeout" type="xs:int" use="optional" default="10">
  66. <xs:annotation>
  67. <xs:documentation>The amount of time in seconds for which to wait for clean shutdown of a context.</xs:documentation>
  68. </xs:annotation>
  69. </xs:attribute>
  70. <xs:attribute name="socket-timeout" type="xs:int" use="optional" default="20">
  71. <xs:annotation>
  72. <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>
  73. </xs:annotation>
  74. </xs:attribute>
  75. <xs:attribute name="node-timeout" type="xs:int" use="optional" default="-1">
  76. <xs:annotation>
  77. <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>
  78. </xs:annotation>
  79. </xs:attribute>
  80. <xs:attribute name="max-attempts" type="xs:int" use="optional" default="1">
  81. <xs:annotation>
  82. <xs:documentation>Number of times an httpd proxy will attempt to send a given request to a worker before giving up.</xs:documentation>
  83. </xs:annotation>
  84. </xs:attribute>
  85. <xs:attribute name="flush-packets" type="xs:boolean" use="optional" default="false">
  86. <xs:annotation>
  87. <xs:documentation>Enables/disables packet flushing.</xs:documentation>
  88. </xs:annotation>
  89. </xs:attribute>
  90. <xs:attribute name="flush-wait" type="xs:int" use="optional" default="-1">
  91. <xs:annotation>
  92. <xs:documentation>Time to wait before flushing packets in milliseconds.</xs:documentation>
  93. </xs:annotation>
  94. </xs:attribute>
  95. <xs:attribute name="ping" type="xs:int" use="optional" default="10">
  96. <xs:annotation>
  97. <xs:documentation>Time (in seconds) in which to wait for a pong answer to a ping.</xs:documentation>
  98. </xs:annotation>
  99. </xs:attribute>
  100. <xs:attribute name="smax" type="xs:int" use="optional" default="-1">
  101. <xs:annotation>
  102. <xs:documentation>Soft maximum idle connection count.</xs:documentation>
  103. </xs:annotation>
  104. </xs:attribute>
  105. <xs:attribute name="ttl" type="xs:int" use="optional" default="-1">
  106. <xs:annotation>
  107. <xs:documentation>Time to live (in seconds) for idle connections above smax.</xs:documentation>
  108. </xs:annotation>
  109. </xs:attribute>
  110. <xs:attribute name="load-balancing-group" type="xs:string" use="optional">
  111. <xs:annotation>
  112. <xs:documentation>Load balancing group</xs:documentation>
  113. </xs:annotation>
  114. </xs:attribute>
  115. <xs:attribute name="connector" type="xs:string" use="required">
  116. <xs:annotation>
  117. <xs:documentation>The name of Undertow listener that mod_cluster reverse proxy will connect to.</xs:documentation>
  118. </xs:annotation>
  119. </xs:attribute>
  120. <xs:attribute name="session-draining-strategy" type="xs:string" use="optional">
  121. <xs:annotation>
  122. <xs:documentation>Session draining strategy used during undeployment of a web application.</xs:documentation>
  123. </xs:annotation>
  124. </xs:attribute>
  125. <xs:attribute name="worker-timeout" type="xs:int" use="optional">
  126. <xs:annotation>
  127. <xs:documentation>
  128. Number of seconds to wait for a worker to become available to handle a request. When no workers of a
  129. balancer are usable, mod_cluster will retry after a while (workerTimeout/100). That is timeout in the
  130. balancer mod_proxy documentation. A value of -1 indicates that the HTTPd will not wait
  131. for a worker to be available and will return an error if none is available.
  132. </xs:documentation>
  133. </xs:annotation>
  134. </xs:attribute>
  135. </xs:complexType>
  136. <!-- general SSL definitions -->
  137. <xs:complexType name="sslType">
  138. <xs:annotation>
  139. <xs:documentation>
  140. Configuration information for one SSL configuration.
  141. sslCertificateEncodingAlgorithm (default value only)
  142. sslKeyStoreType/sslTrustStoreType (JKS: default value only)
  143. sslKeyStoreProvider/sslTrustStoreProvider (only default value).
  144. sslTrustAlgorithm (only default value).
  145. sslTrustMaxCertLength (5: default value only)
  146. </xs:documentation>
  147. </xs:annotation>
  148. <xs:attribute name="key-alias" type="xs:string" use="optional" default="jboss">
  149. <xs:annotation>
  150. <xs:documentation>sslKeyAlias The alias of the key holding the client certificates in the key store.</xs:documentation>
  151. </xs:annotation>
  152. </xs:attribute>
  153. <xs:attribute name="password" type="xs:string" use="optional">
  154. <xs:annotation>
  155. <xs:documentation>
  156. sslKeyStorePassword/sslTrustStorePassword Password granting access to the key store and trust store.
  157. </xs:documentation>
  158. </xs:annotation>
  159. </xs:attribute>
  160. <xs:attribute name="certificate-key-file" type="xs:string" use="optional" default="${user.home}/.keystore">
  161. <xs:annotation>
  162. <xs:documentation>
  163. sslKeyStore: That is the keystore name here.
  164. </xs:documentation>
  165. </xs:annotation>
  166. </xs:attribute>
  167. <xs:attribute name="cipher-suite" type="xs:string" use="optional" default="ALL">
  168. <xs:annotation>
  169. <xs:documentation>
  170. sslCiphers: comma separated list of encryption ciphers the configuration is allowed to use, that MUST NOT be
  171. the JVM default in of JSSE as contains weak ciphers.
  172. that is SSLCipherSuite when using OpenSSL (APR).
  173. </xs:documentation>
  174. </xs:annotation>
  175. </xs:attribute>
  176. <xs:attribute name="protocol" default="TLS" type="xs:string">
  177. <xs:annotation>
  178. <xs:documentation>
  179. sslProtocol: Overrides the default SSL socket protocol.
  180. </xs:documentation>
  181. </xs:annotation>
  182. </xs:attribute>
  183. <xs:attribute name="ca-certificate-file" type="xs:string" use="optional">
  184. <xs:annotation>
  185. <xs:documentation>
  186. sslTrustStore location of the file containing the trust store.
  187. </xs:documentation>
  188. </xs:annotation>
  189. </xs:attribute>
  190. <xs:attribute name="ca-revocation-url" type="xs:string" use="optional">
  191. <xs:annotation>
  192. <xs:documentation>
  193. sslCrlFile A file or URL to get the revocation list.
  194. </xs:documentation>
  195. </xs:annotation>
  196. </xs:attribute>
  197. </xs:complexType>
  198. <!-- <simple-load-provider load="1"/> -->
  199. <xs:complexType name="simple-load-providerType">
  200. <xs:attribute name="factor" type="xs:int" use="optional" default="1"/>
  201. </xs:complexType>
  202. <!-- Something like.
  203. <dynamic-load-provider history="10" decay="2">
  204. <load-metric type="cpu" weight="2" capacity="1"/>
  205. <load-metric type="sessions" weight="1" capacity="512"/>
  206. <load-metric type="busyness">
  207. <property name="name1" value="value1"/>
  208. <property name="name2" value="value2"/>
  209. </load-metric>
  210. ...
  211. </dynamic-load-provider>
  212. -->
  213. <xs:complexType name="dynamic-load-providerType">
  214. <xs:choice minOccurs="0" maxOccurs="unbounded">
  215. <xs:element name="load-metric" type="load-metricType"/>
  216. <xs:element name="custom-load-metric" type="custom-load-metricType"/>
  217. </xs:choice>
  218. <xs:attribute name="history" type="xs:int" use="optional" default="9"/>
  219. <xs:attribute name="decay" type="xs:int" use="optional" default="2"/>
  220. </xs:complexType>
  221. <xs:complexType name="common-load-metricType" abstract="true">
  222. <xs:choice minOccurs="0" maxOccurs="unbounded">
  223. <xs:element name="property" type="propertyType"/>
  224. </xs:choice>
  225. <xs:attribute name="weight" type="xs:int" use="optional" default="1"/>
  226. <xs:attribute name="capacity" type="xs:double" use="optional" default="1.0"/>
  227. </xs:complexType>
  228. <xs:complexType name="load-metricType">
  229. <xs:complexContent>
  230. <xs:extension base="common-load-metricType">
  231. <xs:attribute name="type" type="loadMetricEnum" use="required"/>
  232. </xs:extension>
  233. </xs:complexContent>
  234. </xs:complexType>
  235. <xs:complexType name="custom-load-metricType">
  236. <xs:complexContent>
  237. <xs:extension base="common-load-metricType">
  238. <xs:attribute name="class" type="xs:string" use="required"/>
  239. </xs:extension>
  240. </xs:complexContent>
  241. </xs:complexType>
  242. <xs:simpleType name="loadMetricEnum">
  243. <xs:restriction base="xs:token">
  244. <xs:enumeration value="cpu"/>
  245. <xs:enumeration value="mem">
  246. <xs:annotation>
  247. <xs:documentation>Deprecated.</xs:documentation>
  248. </xs:annotation>
  249. </xs:enumeration>
  250. <xs:enumeration value="heap"/>
  251. <xs:enumeration value="sessions"/>
  252. <xs:enumeration value="requests"/>
  253. <xs:enumeration value="send-traffic"/>
  254. <xs:enumeration value="receive-traffic"/>
  255. <xs:enumeration value="busyness"/>
  256. </xs:restriction>
  257. </xs:simpleType>
  258. <xs:complexType name="propertyType">
  259. <xs:attribute name="name" type="xs:string" use="required"/>
  260. <xs:attribute name="value" type="xs:string" use="required"/>
  261. </xs:complexType>
  262. </xs:schema>