Configuring autoscaler.xml
Sample configuration
<configuration> <autoscaler> <rulesEvaluator> <schedule> <initialDelay>30</initialDelay> <period>15</period> </schedule> </rulesEvaluator> <cloudController> <hostname>CC_HOSTNAME</hostname> <port>CC_LISTEN_PORT</port> <clientTimeout>300000</clientTimeout> </cloudController> <stratosManager> <hostname>SM_HOSTNAME</hostname> <port>SM_LISTEN_PORT</port> <clientTimeout>300000</clientTimeout> </stratosManager> <member> <expiryTimeout>900000</expiryTimeout> </member> </autoscaler> </configuration>
Element definitions
The following are the configurations in the autoscaler.xml
file:
Rules evaluator
The scheduler that runs within the Rules Evaluator will evaluate the Autoscaling rules periodically. The Scheduler needs to be configured with the initialDelay
 and period
.Â
XML Element | Description | Default Value | Mandatory/ Optional |
---|---|---|---|
<initialDelay> | The Scheduler will always start after the Auto-scaler starts and after the time period defined in this element. This element needs to be specified in seconds. | 30 | Mandatory |
<period> | The Scheduler will evaluate the rules based on the time period specified in this element. This element needs to be specified in seconds. | 15 | Mandatory |
Cloud Controller client
There is a Cloud Controller client located within the Autoscaler, which calls the Cloud Controller API. The Cloud Controller client connection details need to be configured in the Autoscaler configuration.
XML Element | Description | Default Value | Mandatory/ Optional |
---|---|---|---|
<hostname> | Cloud Controller hostname | N/A | Mandatory |
<port> | Cloud Controller port | N/A | Mandatory |
<clientTimeout> | This element defines the service timeout period that will be applicable in the event there is no response from the Cloud Controller API. | 300000 | Mandatory |
Stratos Manager client
There is a Stratos Manager client located within the Autoscaler, which calls the Stratos Manager API. The Stratos Manager client connection details need to be configured in the Autoscaler configuration.
XML Element | Description | Default Value | Mandatory/ Optional |
---|---|---|---|
<hostname> | Stratos Manager hostname | N/A | Mandatory |
<port> | Stratos Manager port | N/A | Mandatory |
<clientTimeout> | This element defines the service timeout period that will be applicable in the event there is no response from the Stratos Manager API. | 300000 | Mandatory |
Member timeout
When a new instance is started, it will be marked as a pending member. If the instance does not get activated within a specific time period, the Auto-scaler will terminate the instance. The expiryTimeout
needs to be specified to define the termination time period.
XML Element | Description | Default Value | Mandatory/ Optional |
---|---|---|---|
<expiryTimeout> | This element defines the member timeout period. The | 900000 | Mandatory |