jboss-as-mod-cluster_1_0.xsd 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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.0"
  25. xmlns="urn:jboss:domain:modcluster:1.0"
  26. elementFormDefault="qualified"
  27. attributeFormDefault="unqualified"
  28. version="1.0"
  29. >
  30. <xs:element name="subsystem" type="subsystemType"/>
  31. <xs:complexType name="subsystemType">
  32. <xs:all>
  33. <xs:element name="mod-cluster-config" type="mod-cluster-configType" minOccurs="0" maxOccurs="1"/>
  34. </xs:all>
  35. </xs:complexType>
  36. <xs:complexType name="mod-cluster-configType">
  37. <xs:sequence>
  38. <!-- Simple load-provider or a dynamic one -->
  39. <xs:choice minOccurs="0">
  40. <xs:element name="simple-load-provider" type="simple-load-providerType"/>
  41. <xs:element name="dynamic-load-provider" type="dynamic-load-providerType"/>
  42. </xs:choice>
  43. <xs:element name="ssl" type="sslType" minOccurs="0" maxOccurs="1"/>
  44. </xs:sequence>
  45. <!-- Get the actual advertiseGroupAddress / advertisePort from advertiseSocket -->
  46. <xs:attribute name="advertise-socket" type="xs:string" use="optional"/>
  47. <xs:attribute name="proxy-list" type="xs:string" use="optional"/>
  48. <xs:attribute name="proxy-url" type="xs:string" use="optional"/>
  49. <xs:attribute name="balancer" type="xs:string" use="optional">
  50. <xs:annotation>
  51. <xs:documentation>The balancer name. All nodes of a cluster have to use the same value.</xs:documentation>
  52. </xs:annotation>
  53. </xs:attribute>
  54. <xs:attribute name="advertise" type="xs:boolean" use="optional" default="true"/>
  55. <xs:attribute name="advertise-security-key" type="xs:string" use="optional"/>
  56. <xs:attribute name="sticky-session-force" type="xs:boolean" use="optional" default="true"/>
  57. <xs:attribute name="sticky-session-remove" type="xs:boolean" use="optional" default="false"/>
  58. <xs:attribute name="sticky-session" type="xs:boolean" use="optional" default="true"/>
  59. <!-- mod_cluster parameters that describe node behaviour -->
  60. <xs:attribute name="excluded-contexts" type="xs:string" use="optional" default="ROOT,invoker,jbossws,juddi,console" />
  61. <xs:attribute name="auto-enable-contexts" type="xs:boolean" use="optional" default="true" />
  62. <xs:attribute name="stop-context-timeout" type="xs:int" use="optional" default="10">
  63. <xs:annotation>
  64. <xs:documentation>The amount of time in seconds for which to wait for clean shutdown of a context.</xs:documentation>
  65. </xs:annotation>
  66. </xs:attribute>
  67. <xs:attribute name="socket-timeout" type="xs:int" use="optional" default="20">
  68. <xs:annotation>
  69. <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>
  70. </xs:annotation>
  71. </xs:attribute>
  72. <xs:attribute name="node-timeout" type="xs:int" use="optional" default="-1">
  73. <xs:annotation>
  74. <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>
  75. </xs:annotation>
  76. </xs:attribute>
  77. <xs:attribute name="max-attempts" type="xs:int" use="optional" default="1">
  78. <xs:annotation>
  79. <xs:documentation>Number of times an httpd proxy will attempt to send a given request to a worker before giving up.</xs:documentation>
  80. </xs:annotation>
  81. </xs:attribute>
  82. <xs:attribute name="flush-packets" type="xs:boolean" use="optional" default="false">
  83. <xs:annotation>
  84. <xs:documentation>Enables/disables packet flushing.</xs:documentation>
  85. </xs:annotation>
  86. </xs:attribute>
  87. <xs:attribute name="flush-wait" type="xs:int" use="optional" default="-1">
  88. <xs:annotation>
  89. <xs:documentation>Time to wait before flushing packets in millseconds.</xs:documentation>
  90. </xs:annotation>
  91. </xs:attribute>
  92. <xs:attribute name="ping" type="xs:int" use="optional" default="10">
  93. <xs:annotation>
  94. <xs:documentation>Time (in seconds) in which to wait for a pong answer to a ping.</xs:documentation>
  95. </xs:annotation>
  96. </xs:attribute>
  97. <xs:attribute name="smax" type="xs:int" use="optional" default="-1">
  98. <xs:annotation>
  99. <xs:documentation>Soft maximum idle connection count.</xs:documentation>
  100. </xs:annotation>
  101. </xs:attribute>
  102. <xs:attribute name="ttl" type="xs:int" use="optional" default="-1">
  103. <xs:annotation>
  104. <xs:documentation>Time to live (in seconds) for idle connections above smax.</xs:documentation>
  105. </xs:annotation>
  106. </xs:attribute>
  107. <xs:attribute name="domain" type="xs:string" use="optional" >
  108. <xs:annotation>
  109. <xs:documentation>Load balancing group</xs:documentation>
  110. </xs:annotation>
  111. </xs:attribute>
  112. </xs:complexType>
  113. <!-- general SSL definitions -->
  114. <xs:complexType name="sslType">
  115. <xs:annotation>
  116. <xs:documentation>
  117. Configuration information for one SSL configuration.
  118. sslCertificateEncodingAlgorithm (default value only)
  119. sslKeyStoreType/sslTrustStoreType (JKS: default value only)
  120. sslKeyStoreProvider/sslTrustStoreProvider (only default value).
  121. sslTrustAlgorithm (only default value).
  122. sslTrustMaxCertLength (5: default value only)
  123. </xs:documentation>
  124. </xs:annotation>
  125. <xs:attribute name="key-alias" type="xs:string" use="optional" default="jboss">
  126. <xs:annotation>
  127. <xs:documentation>sslKeyAlias The alias of the key holding the client certificates in the key store.</xs:documentation>
  128. </xs:annotation>
  129. </xs:attribute>
  130. <xs:attribute name="password" type="xs:string" use="optional">
  131. <xs:annotation>
  132. <xs:documentation>
  133. sslKeyStorePassword/sslTrustStorePassword Password granting access to the key store and trust store.
  134. </xs:documentation>
  135. </xs:annotation>
  136. </xs:attribute>
  137. <xs:attribute name="certificate-key-file" type="xs:string" use="optional" default="${user.home}/.keystore">
  138. <xs:annotation>
  139. <xs:documentation>
  140. sslKeyStore: That is the keystore name here.
  141. </xs:documentation>
  142. </xs:annotation>
  143. </xs:attribute>
  144. <xs:attribute name="cipher-suite" type="xs:string" use="optional" default="ALL">
  145. <xs:annotation>
  146. <xs:documentation>
  147. sslCiphers: comma separated list of encryption ciphers the configuration is allowed to use, that MUST NOT be
  148. the JVM default in of JSSE as contains weak ciphers.
  149. that is SSLCipherSuite when using OpenSSL (APR).
  150. </xs:documentation>
  151. </xs:annotation>
  152. </xs:attribute>
  153. <xs:attribute name="protocol" default="ALL" type="SSlProtocolType">
  154. <xs:annotation>
  155. <xs:documentation>
  156. sslProtocol: Overrides the default SSL socket protocol.
  157. </xs:documentation>
  158. </xs:annotation>
  159. </xs:attribute>
  160. <xs:attribute name="ca-certificate-file" type="xs:string" use="optional">
  161. <xs:annotation>
  162. <xs:documentation>
  163. sslTrustStore location of the file containing the trust store.
  164. </xs:documentation>
  165. </xs:annotation>
  166. </xs:attribute>
  167. <xs:attribute name="ca-revocation-url" type="xs:string" use="optional">
  168. <xs:annotation>
  169. <xs:documentation>
  170. sslCrlFile A file or URL to get the revocation list.
  171. </xs:documentation>
  172. </xs:annotation>
  173. </xs:attribute>
  174. </xs:complexType>
  175. <xs:simpleType name="SSlProtocolType">
  176. <xs:restriction base="xs:token">
  177. <xs:enumeration value="SSLv2"/>
  178. <xs:enumeration value="SSLv3"/>
  179. <xs:enumeration value="TLSv1"/>
  180. <xs:enumeration value="SSLv2+SSLv3"/>
  181. <xs:enumeration value="ALL"/>
  182. </xs:restriction>
  183. </xs:simpleType>
  184. <!-- <simple-load-provider load="1"/> -->
  185. <xs:complexType name="simple-load-providerType">
  186. <xs:attribute name="factor" type="xs:int" use="optional" default="1" />
  187. </xs:complexType>
  188. <!-- Something like.
  189. <dynamic-load-provider history="10" decay="2">
  190. <load-metric type="cpu" weight="2" capacity="1"/>
  191. <load-metric type="sessions" weight="1" capacity="512"/>
  192. ...
  193. </dynamic-load-provider>
  194. -->
  195. <xs:complexType name="dynamic-load-providerType">
  196. <xs:choice minOccurs="0" maxOccurs="unbounded">
  197. <xs:element name="load-metric" type="load-metricType"/>
  198. <xs:element name="custom-load-metric" type="custom-load-metricType"/>
  199. </xs:choice>
  200. <xs:attribute name="history" type="xs:int" use="optional" default="9" />
  201. <xs:attribute name="decay" type="xs:int" use="optional" default="2"/>
  202. </xs:complexType>
  203. <xs:complexType name="common-load-metricType" abstract="true">
  204. <xs:attribute name="weight" type="xs:int" use="optional" default="1"/>
  205. <xs:attribute name="capacity" type="xs:double" use="optional" default="1.0"/>
  206. </xs:complexType>
  207. <xs:complexType name="load-metricType">
  208. <xs:complexContent>
  209. <xs:extension base="common-load-metricType">
  210. <xs:attribute name="type" type="loadMetricEnum" use="required"/>
  211. </xs:extension>
  212. </xs:complexContent>
  213. </xs:complexType>
  214. <xs:complexType name="custom-load-metricType">
  215. <xs:complexContent>
  216. <xs:extension base="common-load-metricType">
  217. <xs:attribute name="class" type="xs:string" use="required"/>
  218. </xs:extension>
  219. </xs:complexContent>
  220. </xs:complexType>
  221. <xs:simpleType name="loadMetricEnum">
  222. <xs:restriction base="xs:token">
  223. <xs:enumeration value="cpu"/>
  224. <xs:enumeration value="mem"/>
  225. <xs:enumeration value="heap"/>
  226. <xs:enumeration value="sessions"/>
  227. <xs:enumeration value="requests"/>
  228. <xs:enumeration value="send-traffic"/>
  229. <xs:enumeration value="receive-traffic"/>
  230. <xs:enumeration value="busyness"/>
  231. </xs:restriction>
  232. </xs:simpleType>
  233. </xs:schema>