The configurations included in the autoscale-policy.json file are as follows:

{
  "id": "autoscale-policy-1",
  "loadThresholds": {
    "requestsInFlight": {
      "average": 50
    },
    "memoryConsumption": {
      "average": 70
    },
    "loadAverage": {
      "average": 100
    }
  }
}

Parameter definitions

Autoscale policy definitions

ParameterDescriptionRequiredDefault valueExample value

id

Unique ID of the autoscaling policyYesN/A

autoscale-policy-1

loadThresholds

The autoscaling loadthreshold is determined based on the requestsInFlight, memoryConsumption, and loadAverage.YesN/AN/A
loadThresholds
ParameterDescriptionRequired
requestsInFlightThe 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: (usedMemory/totalMemory)*100

In the above formula, usedMemory refers to the amount of current memory usage, and totalMemory refers to the total amount of memory available in the instance used.

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: (loadAvg/cores)*100

In the above formula, loadAvg refers to the load average of the instance and cores refers to the number of CPU cores of the instance.

Yes
requestsInFlight
ParameterDescriptionRequiredDefault valueExample value

average

The average number of requests in flightNoN/A

50

memoryConsumption
ParameterDescriptionRequiredDefault valueExample value

average

The average of the memory usageYesN/A70
loadAverage
ParameterDescriptionRequiredDefault valueExample value

average

The average of the system load over a period of timeYesN/A100
  • No labels