Scale your Private Access Connector VM instances based on metric thresholds by creating a custom autoscale policy.
Procedure
- In the left navigation, click Scaling.
- On the Configure tab of the Scaling screen that appears, select Custom autoscale.
- In the Custom autoscale configuration area, set Scale mode to Scale based on a metric.
- Add a "Scale out" rule to increase the instance count by clicking
Add a rule and specifying the following fields.FieldSettingMetric sourceCurrent resourceCriteriaMetric namespaceVirtual Machine HostMetric namePercentage CPUDimension NameVMNAME "= All values"Enable metric divide by instance countDo not toggle on.OperatorGreater thanMetric threshold to trigger scale action
-
80 (suggested) for 2 virtual CPUs
-
70 (suggested) for 4 virtual CPUs
Duration5Time grain statisticAverageTime aggregationAverageActionOperationIncrease count byCool down10Instance count1(Optional) To modify an existing metric trigger rule, click the metric threshold part of the rule, update the desired fields, and then click Update. -
- Click Add.
- Add a "Scale in" rule to decrease the instance count by clicking Add
a rule and specifying the following fields.FieldSettingMetric sourceCurrent resourceCriteriaMetric namespaceVirtual Machine HostMetric namePercentage CPUDimension NameVMNAME "= All values"Enable metric divide by instance countDo not toggle on.OperatorLess thanMetric threshold to trigger scale action
-
15 (suggested) for 2 virtual CPUs
-
10 (suggested) for 4 virtual CPUs
Duration10Time grain statisticAverageTime aggregationAverageActionOperationDecrease count byCool down20Instance count1(Optional) To modify an existing metric trigger rule, click the metric threshold part of the rule, update the desired fields, and then click Update. -
- Click Add.
- Click Save.