This page is under construction.
Carbon Service XML
<service domain="wso2.appserver.domain" subDomain="__$default" tenantRange="*"> <cartridge type="appserver"/> <host>appserver.stratos.wso2.com</host> <payload>/opt/wso2cc-1.0.1/repository/resources/payload/as/as-default.zip</payload> <property name="alarming_lower_rate" value="0.2"/> <property name="rounds_to_average" value="2"/> <property name="alarming_upper_rate" value="0.7"/> <property name="max_app_instances" value="1"/> <property name="min_app_instances" value="1"/> <property name="scale_down_factor" value="0.25"/> <property name="max_requests_per_second" value="5"/> </service>
Non-Carbon Service XML
<service domain="test4.mysql.stratos.wso2.com.mysql.domain" subDomain="__$default" tenantRange="*"> <cartridge type="mysql"/> <host>test4.mysql.stratos.wso2.com</host> <payload>/opt/wso2cc-1.0.1/resources/payload/test4.mysql.stratos.wso2.com.mysql.domain-__$default.txt</payload> <property name="alarming_lower_rate" value="0.2"/> <property name="rounds_to_average" value="2"/> <property name="alarming_upper_rate" value="0.7"/> <property name="max_app_instances" value="1"/> <property name="min_app_instances" value="1"/> <property name="scale_down_factor" value="0.25"/> <property name="max_requests_per_second" value="5"/> </service>
Element Definitions
Click the respective element link for in-depth information.
service
Criteria | Description |
---|---|
XML Syntax | <service> |
Description | Represents a service cluster in the Stratos 2 environment. |
Mandatory/Optional | Mandatory |
Attribute | domain |
Type | String |
Description | Service cluster domain. |
Mandatory/Optional | Mandatory |
Attribute | subDomain |
Type | String |
Description | Mandatory |
Mandatory/Optional | Service cluster sub-domain. |
Attribute | tenantRange |
Type | String |
Description | Range of tenant IDs. This can either be one digit or a range such as 1-2 |
Mandatory/Optional | Mandatory |
cartridge
Criteria | Description |
---|---|
XML Syntax | <cartridge/> |
Description | Reference to the Cartridge. |
Mandatory/Optional | Optional |
Attribute | type |
Description | Used to uniquely identify a Cartridge in the Stratos 2 environment. The type should be unique among all the Cartridge definitions. |
Type | String |
Mandatory/Optional | Mandatory |
host
Criteria | Description |
---|---|
XML Syntax | <host> |
Description | Host name of this service instance. |
Type | String |
Mandatory/Optional | Optional |
payload
Criteria | Description |
---|---|
XML Syntax | <payload> |
Description | Path to the payload file. |
Type | String |
Mandatory/Optional | Optional |
property
Criteria | Description |
---|---|
XML Syntax | <property> |
Description | |
Mandatory/Optional | Optional |
Attribute | name |
Description | Defines the various service properties available. A service element can have 0..n properties and they will be overwritten by the properties specified under IaaS Provider child elements of service element. |
Type | String |
Mandatory/Optional | Mandatory |
Attribute | value |
Description | |
Type | S |
Mandatory/Optional | Mandatory |