Skip to content

Ask AI

Powered by Blaze

Answers come from E2E Cloud documentation. AI can make mistakes.

Get started with TIR Auto Scaling Groups

View as Markdown

Build a small Auto Scaling Group from a snapshot of one of your VMs, push its CPU up so the group adds a VM, and delete the group when you finish.

You need:

  • A TIR project in Delhi or Chennai, and permission to create Auto Scaling Groups in it.
  • A CPU VM in the project that is Running or Stopped.
  • On a prepaid account, enough credit to start the group’s VMs. See Pay now in TIR to add it, and Billing for TIR Auto Scaling Groups for what a group costs.

Every VM in a group starts as a copy of one snapshot. Take a snapshot of your VM, and wait until it shows Ready. The steps are in Create a VM snapshot.

  1. In TIR, open your project. In the side menu, under Compute, select Auto Scaling Groups, then select Create Auto Scaling Group.
  2. Open the Snapshots tab and select your snapshot.
  3. Keep the name TIR fills in under Auto Scaling Group Name.
  4. Under Select Computing Resource, keep the plan family and pick a size under Configuration. A group runs on a CPU plan, and every VM uses this plan and is billed at its price. A small size is enough here.
  5. Under Scaling, set Minimum VMs to 1 and Maximum VMs to 2. The group always keeps its VM count between the minimum and the maximum.
  6. Keep Usage-based in Policy and CPU utilization as the metric, with the target at 60. The group adds a VM when the average CPU of its VMs stays above 60 percent.
  7. Under Network & Security, pick your SSH key in SSH Keys; a key you have not added yet can be added right there. Then pick a Security Group that opens port 22.
  8. Select Create Auto Scaling Group.

TIR opens the group’s page and launches the first VM. When the VM is ready, the group is Running. For every choice, see Create an Auto Scaling Group.

  1. On the group’s page, open Overview and copy the ssh root@<public IP> command under Connect. Sign in from a terminal on your computer.

  2. Start a busy process on the VM so its CPU goes up. Run this command once for each vCPU of the plan:

    yes > /dev/null &
  3. Keep an eye on CPU utilization on Overview. The reading covers the last 2 minutes. When usage has stayed above the target for the wait that the group’s Scaling behavior sets, the group adds a VM. With the default Balanced preset, that wait is 150 seconds, and the group’s State is then Scaling out.

  4. Scaling Activity records the change as “Added 1 VM”, with the reason, such as “CPU utilization reached 72% (target 60%).” Both VMs are on VMs & Monitoring.

Scale on usage explains how the group decides. When you finish, stop the busy process on the VM:

pkill yes

A running group bills for its VMs until you stop or delete it. To delete it, open the More actions menu on the group’s page, select Delete, tick the box that confirms the deletion, and select Delete. Its VMs are terminated, and anything stored on their disks is deleted with them. Your snapshot and your source VM stay. Once you have finished with the snapshot, delete it as described in Delete a VM snapshot. The steps in full are in Delete an Auto Scaling Group.

If the launch fails, see Troubleshooting TIR Auto Scaling Groups.

Was this page helpful?