ScalingTemplateContent object

Example JSON representation

{
  "considerSuspendedServers": "running", 
  "enabled": true, 
  "maxInstances": 1, 
  "minInstances": 1, 
  "rules": [
    {
      "name": "string", 
      "ruleType": "ScalingRule"
    }
  ], 
  "scalingBehavior": "suspend-resume"
}

Properties

property attributes valid values description filter option
considerSuspendedServers
string
optional
"running"
"terminated"

By default Scalr considers all suspended servers as running when calculating the number of running instances to make a scaling decision.

enabled
boolean
optional
maxInstances
integer
optional
minInstances
integer
optional
rules
Array of ScalingRule objects
optional

Farm Role scaling rules.

scalingBehavior
string
optional
"suspend-resume"
"launch-terminate"

By default value is 'launch-terminate', Scalr autoscales by launching and terminating servers. If you change this options to 'suspend-resume' Scalr will automatically scale servers by suspending and resuming servers.