Sample Auto-scaling Policy Definition
The configuration included in the autoscale-policy.json
file is as follows:
{ "id": "autoscale-policy-1", "loadThresholds": { "requestsInFlight": { "average": 50 }, "memoryConsumption": { "average": 70 }, "loadAverage": { "average": 100 } } }
Parameter definitions
Autoscale policy definitions
Parameter | Description | Required | Default Value | Example Value |
---|---|---|---|---|
id | Unique ID of the autoscaling policy | Yes | N/A | autoscale-policy-1 |
loadThresholds | The autoscaling loadthreshold is determined based on the requestsInFlight, memoryConsumption and loadAverage. | Yes | N/A | N/A |
loadThresholds
Parameter | Description | Required |
---|---|---|
requestsInFlight | The number of requests the Load Balancer received, but are yet to be processed. | No - Required only if the deployed cartridge is using a Load Balancer. |
memoryConsumption | The memory usage of a cartridge process, which is considered as a percentage of the total available RAM. This is a percentage and cannot go beyond 100 since a process cannot take more than total physical memory. The formula used to calculate this is: In the above formula, | Yes |
loadAverage | The average system load over a period of time. (System load is a measure of the amount of computational work that a computer system performs). This a percentage and it can go beyond 100%. The formula used to calculate this is: In the above formula, | Yes |
requestsInFlight
Parameter | Description | Required | Default Value | Example Value |
---|---|---|---|---|
average | The average number of requests in flight. | No | N/A | 50 |
memoryConsumption
Parameter | Description | Required | Default Value | Example Value |
---|---|---|---|---|
average | The average of the memory usage | Yes | N/A | 70 |
loadAverage
Parameter | Description | Required | Default Value | Example Value |
---|---|---|---|---|
average | The average of the system load over a period of time | Yes | N/A | 100 |