AutoScaling VM is a feature that allows cloud-based infrastructure to automatically adjust the number of virtual machines in response to changes in demand or workload. When demand increases, additional virtual machines are automatically provisioned to handle the load, ensuring optimal performance and availability. Conversely, when demand decreases, excess virtual machines are automatically terminated to save costs. This dynamic scaling capability helps maintain consistent performance while minimizing resource waste and manual intervention.
Consider the following requirements before creating an AutoScale VM Group:
By default, network offerings supporting load balancers have AutoScaling enabled. To disable it, create a network offering without AutoScaling support.
To add a new AutoScale VM Group, follow these steps:
1. Navigate to Compute → AutoScale VM Groups.
2. Here, you can view all previously created AutoScale Groups. To add a new group, click on New AutoScale VM Group in the top row:
3. First, choose a deployment zone for your instance. The options you can select from are WSB1, FRA1 and FRA2.
4. Next, select an Template from the list. You can choose from a wide variety of operating systems, applications, or custom images.
5. Now, choose a Compute offering according to your needs. The hardware offerings vary in pricing, CPU cores, and RAM memory. You can find more information about that in our service offerings.
6. Optionally, select an additional Data disk.
7. Choose at least one Network for VMs in the AutoScale VM group. The default network must be an isolated network or VPC tier which supports VM AutoScaling and has load balancing rules.
8. Select a Load balancer rule for your AutoScale VM group. Please note that load balancing must be configured for your Public IP address.
9. The next two steps involve configuring the ScaleUp and ScaleDown policies of the VM group. If all the conditions are met, the AutoScale VM Group will either scale up or down accordingly. For more information, refer to section AutoScale Policies.
10. You can also configure Advanced settings if desired, such as SSH Key Pairs, Affinity Groups, and User Data.
11. Lastly, you have to configure some minor Details:
12. Click on Create to save and add your new AutoScale VM Group.
As introduced in the previous chapter, a VM Group must have AutoScale Policies, specifically at least one ScaleUp and one ScaleDown policy. These policies include the following parameters:
On the other hand, each condition has the following parameters:
Almost every configuration for the AutoScale VM Groups explained so far can still be edited and managed in the detail view of the instance group. If you plan on adjusting or maintaining the AutoScale VM Groups, we strongly recommend disabling the AutoScale Group beforehand. In the disabled status, no scale up or scale down action is performed, allowing for seamless performance of any maintenance activity. To disable an AutoScale VM Group, follow these easy steps:
1. Navigate to Compute → AutoScale VM Groups.
2. Select the VM Group you wish to manage from the list view.
3. Click on Disable AutoScale VM Group in the top right action toolbar:
After your maintenance activity is completed, you can activate the VM Group in the same way by clicking on Enable AutoScale VM Group this time. The adjustments will take effect and the VM Group will be ready to go again.
You can modify various AutoScale VM Group settings after its creation. To do so, follow these steps:
1. Navigate to Compute → AutoScale VM Groups.
2. Select the VM Group you wish to update from the list view.
3. Click on Update AutoScale VM group in the top right action toolbar:
4. Update Name, Max members, Min members, and Polling interval.
5. Click on OK to save the changes.
You can also update certain AutoScale VM Profile settings. To accomplish that, follow these steps:
1. Navigate to Compute → AutoScale VM Groups.
2. Select the VM Group you wish to update from the list view.
3. Click on AutoScale VM Profile in the right management block.
4. Clicking on the Edit AutoScale VM Profile button opens a window where you can modify the Expunge VM grace period, Template, and Compute offering of your AutoScale VM Group:
5. Clicking on the Reset Userdata on AutoScale VM Group button right next to it provides you with the option to update and change the User data of your VM Group:
6. Lastly, you can update specific Parameter settings for your AutoScale VM Group, such as the following ones:
You can also add, update, and remove AutoScale Policies. To do so, follow these steps:
1. Navigate to Compute → AutoScale VM Groups.
2. Select the VM Group you wish to update from the list view.
3. Depending on which policy you want to edit, click either on ScaleUp policy or Scale Down policy in the right management block.
4. To add a new policy, click on Add policy and specify Name, Duration, Quiet time, Counter, Operator, and Threshold as explained in the AutoScale policies above:
5. To update an existing policy, Select the ScaleUp/ScaleDown policy from the drop down menu, click on the Edit button, modify the values of the parameters or conditions, and save by clicking the Apply button:
6. Finally, you can remove either specific conditions or entire policies by clicking on the Remove policy button:
If AutoScale VM Groups are no longer needed and you want to reclaim space, you can easily remove them by following these steps:
1. Navigate to Compute → AutoScale VM Groups.
2. Select the VM Group you wish to remove from the list view.
3. Click on Delete AutoScale VM Group in the top right action toolbar:
4. Optionally, you can toggle the Clean up button if you want to force-delete the VM Group. Note that doing so will directly expunge the resource with no possibility of recovery.
AutoScale VM Groups can only be removed if there are no instances in the group.