123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253 |
- <?xml version="1.0" encoding="UTF-8"?>
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
- targetNamespace="urn:jboss:domain:modcluster:1.1"
- xmlns="urn:jboss:domain:modcluster:1.1"
- 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>
-
- <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>
-
- <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"/>
-
- <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 millseconds.</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 web connector on which mod_cluster will operate.</xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:complexType>
-
- <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>
-
- <xs:complexType name="simple-load-providerType">
- <xs:attribute name="factor" type="xs:int" use="optional" default="1" />
- </xs:complexType>
-
- <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: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: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:schema>
|