Skip to content

Commit

Permalink
add scale down mode
Browse files Browse the repository at this point in the history
  • Loading branch information
marwanad committed Jul 8, 2021
1 parent 4385826 commit 4d5648c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"vmSize": "Standard_DS1_v2",
"osType": "Linux",
"type": "VirtualMachineScaleSets",
"scaleDownMode": "Deallocate",
"availabilityZones": [
"1",
"2",
Expand Down Expand Up @@ -92,6 +93,7 @@
"provisioningState": "Succeeded",
"orchestratorVersion": "1.9.6",
"type": "VirtualMachineScaleSets",
"scaleDownMode": "Deallocate",
"availabilityZones": [
"1",
"2",
Expand Down Expand Up @@ -177,6 +179,7 @@
"provisioningState": "Creating",
"orchestratorVersion": "1.9.6",
"type": "VirtualMachineScaleSets",
"scaleDownMode": "Deallocate",
"availabilityZones": [
"1",
"2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2371,6 +2371,9 @@
"type": "boolean",
"description": "Whether to enable auto-scaler"
},
"scaleDownMode": {
"$ref": "#/definitions/ScaleDownMode"
},
"type": {
"$ref": "#/definitions/AgentPoolType"
},
Expand Down Expand Up @@ -4183,6 +4186,28 @@
"title": "The max price (in US Dollars) you are willing to pay for spot instances. Possible values are any decimal value greater than zero or -1 which indicates default price to be up-to on-demand.",
"description": "Possible values are any decimal value greater than zero or -1 which indicates the willingness to pay any on-demand price. For more details on spot pricing, see [spot VMs pricing](https://docs.microsoft.com/azure/virtual-machines/spot-vms#pricing)"
},
"ScaleDownMode": {
"type": "string",
"enum": [
"Delete",
"Deallocate"
],
"x-ms-enum": {
"name": "ScaleDownMode",
"modelAsString": true,
"values": [
{
"value": "Delete",
"description": "Delete mode wil create new instances during scale up and remove instances during scale down."
},
{
"value": "Deallocate",
"description": "Deallocate mode will attempt to start deallocated instances (if they exist) during scale up and deallocate instances during scale down."
}
]
},
"description": "Determines the actions taken in regards to VMs during scaling up and down. This also effects the cluster autoscaler behavior."
},
"ProximityPlacementGroupID": {
"type": "string",
"description": "The ID for Proximity Placement Group."
Expand Down

0 comments on commit 4d5648c

Please sign in to comment.