Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Table of Contents
maxLevel3
minLevel3

 

Carbon Service XML

Code Block
<service domain="nirwso2.appserver.domain" subDomain="mgt__$default" tenantRange="*">
        <cartridge type="phpappserver"/>
      <host>nir.mgt</host>  <host>appserver.stratos.wso2.com</host>
        <payload>/wso2asopt/wso2cc-51.0.1-cloud-controller/resources/payload/nir-mgt.txt</payload>
</service>

Parameter Description

...

/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

Code Block
<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.

...

CriteriaDescription
XML Syntax
</service>
Description 
Type 
Default Value 
Fixed Values 
Mandatory/Optional 

...

Table of Contents
minLevel4


service

CriteriaDescription
XML Syntax
<service>
Description

Represents a service cluster in the Stratos 2 environment.

Mandatory/Optional

Mandatory

Attribute
domain
DescriptionService cluster domain.
TypeString
Mandatory/OptionalMandatory
Attribute
subDomain
DescriptionMandatory
TypeString 
Mandatory/OptionalService cluster sub-domain.
Attribute
tenantRange
DescriptionRange of tenant IDs. This can either be one digit or a range such as 1-2
TypeString 
Mandatory/OptionalMandatory

 

cartridge

 
CriteriaDescription
XML Syntax
<cartridge/>
DescriptionReference to the Cartridge.
Type 
Default Value 
Fixed ValuesMandatory/Optional Optional
Attribute
type
DescriptionUsed to uniquely identify a Cartridge in the Stratos 2 environment. The type should be unique among all the Cartridge definitions.
TypeString 
Mandatory/OptionalMandatory

 

...

host

...

CriteriaDescription
XML Syntax
</host><host>
DescriptionHost name of this service instance.
TypeString
Mandatory/OptionalOptional

 

...

payload

CriteriaDescription
XML Syntax
<payload>
DescriptionPath to the payload file.
TypeString
Mandatory/OptionalOptional

 

...

property

 
CriteriaDescription
XML Syntax
</payload><property>
DescriptionDefines the property of the service cluster.
Mandatory/Optional Optional
Attribute
name
Type 
Default Value 
Fixed Values String
Mandatory/OptionalMandatory
Attributevalue
TypeString 
Mandatory/OptionalMandatory