Zergaw Cloud Docs

Instance AutoScaling

What is AutoScaling?

AutoScaling allows you to scale your back-end services or application Instances up or down seamlessly and automatically according to the conditions you define. With AutoScaling enabled, you can ensure that the number of Instances you are using seamlessly scale up when demand increases, and automatically decreases when demand subsides. Thus it helps you save compute costs by terminating underused Instances automatically and launching new ones when you need them, without the need for manual intervention.

Prerequisites

Before you configure an AutoScale rule, consider the following:

Adding an AutoScale Instance Group

  1. Log in to the Zergaw CloudStack UI as an administrator or end user.
  2. In the left navigation, choose Compute -> AutoScale Instance Groups.
  3. Click the New AutoScale Instance Group button.

Specify the following:

AutoScale Policies

An AutoScale Instance Group must have one or more scale-up policies, and one or more scale-down policies.

Each AutoScale Policy has the following parameters:

Each condition in AutoScale policies has the following parameters:

Disabling and Enabling an AutoScale Instance Group

You can view the detail of the AutoScale Instance Group.

  1. Log in to the Zergaw CloudStack UI as an administrator or end user.
  2. In the left navigation, choose Compute -> AutoScale Instance Groups.
  3. Select the AutoScale Instance Group you want to work with.

AutoScale Instance Group details.

If you want to perform any maintenance operation on the AutoScale Instances, disable the AutoScale Instance Group. When the AutoScale Instance Group is disabled, no scaleup or scaledown action is performed. You can use this downtime for the maintenance activities. To disable the AutoScale Instance Group, click the Disable AutoScale Instance Group button.

The button toggles between enable and disable, depending on whether AutoScale is currently enabled or not. After the maintenance operations are done, you can enable the AutoScale Instance Group back. To enable the AutoScale Instance Group, click the Enable AutoScale Instance Group button.

Updating an AutoScale Instance Group

You can update the various parameters of Instance profile, and add or delete the conditions in a scaleup or scaledown policy. Before you update an AutoScale Instance Group, ensure that you disable it first by clicking the Disable AutoScale button.

To update the AutoScale Instance Group, click the Update AutoScale Instance Group button.

Update AutoScale Instance Group.

Updating AutoScale Instance Profile

To update the Instance Profile of the AutoScale Instance Group, click the AutoScale Instance Profile tab, You will see the details of AutoScale Instance Profile.

AutoScale Instance Profile.

then click Edit AutoScale Instance Profile button.

Update AutoScale Instance Profile.

You are able to reset userdata of the Instance, by clicking Reset Userdata on AutoScale Instance Group button.

Reset Userdata in AutoScale Instance Profile.

You are also able to update the deploy parameters of the Instances.

AutoScale Instance deploy parameters.

The following parameters are supported.

Adding an AutoScale policy

To add a new Scale policy to the AutoScale Instance Group, click the ScaleUp policy or ScaleDown policy tab, then click “Add policy”.

Add new AutoScale Policy.

For more information, see “AutoScale policies”.

Updating AutoScale policies

To update the AutoScale policies of the AutoScale Instance Group, click the ScaleUp policy or ScaleDown policy tab.

AutoScale Policies.

To update an existing AutoScale policies, select a policy, input the new value of Duration or Quiet time, then click Edit button.

To add a new condition to the policy, choose Counter and Operator and input the value, click Add condition.

To remove an existing condition from the policy, click Delete button of the condition.

To update a condition in the policy, click Edit button, choose Operator and input the value, click OK button.

Removing an AutoScale policy

To remove an existing AutoScale policies, select a policy, click “Remove policy” button.

To apply the new AutoScale Instance Profile and AutoScale policies, open the AutoScale Instance Group details, then click the Enable AutoScale Instance Group button.

Deleting an AutoScale Instance Group

To remove an AutoScale Instance Group, click “Delete AutoScale Instance Group” button.

Delete AutoScale Instance Group.

AutoScale Instance Group can be removed only if there are no Instances in the group.

To force-delete the AutoScale Instance Group, check the cleanup checkbox, then click OK button. All the Instances in the group will be expunged.

Runtime Considerations

An administrator should not assign an Instance to a load balancing rule which is configured for AutoScale.

Making API calls outside the context of AutoScale, such as destroyVM, on an autoscaled Instance leaves the load balancing configuration in an inconsistent state. Even though the Instance is destroyed from the load balancer rule, it continues to be shown as a service assigned to a rule inside the context of AutoScale.