Azure Autoscaling rules can be attached to an Azure Node pool to dynamically scale up or down the nodes within the nodepool.
In order to use the Azure Autoscaling rules, enable the microsoft.insights in the Azure Subscription.
Login to your Azure account.
Choose the Subscription and Under Resource Providers search for microsoft.insights and enable it.
Follow these steps to register an Azure Account in gopaddle.
Adding autoscaling rules to Azure node pool
While creating the cluster via gopaddle or while adding a node pool to the cluster via gopaddle, you can set the scaling rules for the node pool.
Metric defines the attribute to be monitored. Scaling can be performed based on the below mentioned metrics.
Disk Read Bytes
Disk Write Bytes
Disk Read Operations/Sec
Disk Write Operations/Sec
CPU Credits Remaining
CPU Credits Consumed
Measure specifies the measure of the metrics to be watched for. Measure can be one of the blow:
'When' specifies the operator. It can be :
Capacity specifies the value of the metric.
Scale specifies whether to increase or decrease the node count in the node pool.
Scale by specifies the number of nodes to increase or decrease.
Scale Type specifies the behaviour once the scaling condition matches. It can be
ChangeCount: Increase or decrease the number of nodes
ExactCount: Maintain a specified number of nodes
PertcentChangeCount: Increase or decrease the number of nodes by a percentage of the current nodes.
Watch Duration is the duration to watche the change in metric before triggering an autoscaling event.
Cooldown Period is the duration to wait before triggering the subsequent autoscaling event.
Time Window is the sampling duratin and is used to normalize the metrics collected. Say aggregate the data every 1 minute.
Statistic specifies the aggregation method for the time window. It can be :
For more information on Azure Virtual Machine Scaling Set (VMSS), please check the document here.