Dokumentation

AutoScaling

Let the number of servers behind a load balancer rule grow and shrink automatically with load.

What AutoScaling is

AutoScaling lets a group of servers behind a load balancer rule grow and shrink automatically with the actual load -- more servers as demand rises, fewer again as it falls. It saves you monitoring and scaling by hand, and means you only pay for the servers genuinely needed right now.

To use it, your image must already have the right application set up and ready to start immediately -- a new server that is scaled up has to be able to start taking traffic without manual intervention.

Create an AutoScale group

  1. Select Compute > AutoScale Instance Groups and click New AutoScale Instance Group.
  2. Specify the zone, image, service offering and, optionally, an extra data disk for each server in the group.
  3. Choose the network and the load balancer rule that servers in the group should automatically be attached to.
  4. Specify Min Instance and Max Instance -- the permitted range for how many servers the group may consist of.
  5. Specify a polling interval (how often the conditions are checked, 30 seconds by default) and a grace period (how long a server due to be removed is allowed to finish its existing connections, 120 seconds by default) before it is actually removed.
  6. Under the advanced settings you can specify SSH keys, affinity groups and user data that every new server in the group should have.
  7. Click Create -- then add at least one scaling policy (see below) before the group actually starts scaling.

Create a scaling policy

A group must have at least one scale-up and one scale-down policy. Under the group's ScaleUp policy / ScaleDown policy tabs, click Add policy and specify:

  • Duration: how long the condition must hold continuously before the action is triggered.
  • Quiet time: a cooldown period after an action, so the system does not immediately trigger another.
  • Condition(s): a metric (average CPU or memory load, network traffic, or average number of connections per server, for example), an operator (greater than, less than, and so on) and a threshold.

Enable or disable a group

If you need to do maintenance on servers in the group, you can pause scaling temporarily:

  1. Open the group and click Disable AutoScale Instance Group (or Enable, when you are done).

While the group is disabled, no automatic scaling up or down takes place.

Update a group

Disable the group first, then update its profile (image, service offering, disks, network, SSH keys and so on) or its policies, and enable the group again afterwards to apply the changes.

Delete a group

A group can only be deleted when it is empty. If servers remain in it, you can tick "cleanup" when deleting to expunge them all in the same operation.