Capacity that follows load.Not your pager.
Define a machine once as a versioned launch template, set a minimum, a desired and a maximum, and let the group launch, replace and retire VMs across ap-south-3a and ap-south-3b as CPU moves. Unhealthy instances are replaced, a load balancer target group is kept in step, and the group costs nothing on top of the VMs it runs.
Simulated group - illustrative values
Validated bounds. Set desired capacity by hand at any time, or let policies move it.
Instance or load-balancer health checks with a grace period. Unhealthy members are replaced.
Spread across multiple subnets and both Noida zones, balanced best effort or balanced only.
The group is compared to its desired state every minute and corrected.
Describe the machine once.Version every change.
A launch template is the blueprint every instance in a group is built from. Each change is a new version; one version is the default, and a group can follow the default or pin a specific version. Rolling a group onto a new version is an instance refresh.
- Machine type
- Image
- Data volumes
- Disk
- SSH key
- Security groups
- VPC and subnet
- Public IP type
- User data
- IAM instance profile
- Source snapshot
- Billing cycle (hourly by default)
- machine_type
- dd.compute.4
- image
- +Ubuntu 24.04 LTS
- subnet
- web-a, web-b (ap-south-3a, ap-south-3b)
- security_groups
- sg-web
- user_data
- #cloud-config · install app
- iam_instance_profile
- +web-reader
- billing_cycle
- hourly
Select a version to see what it changed. · Illustrative template
Three ways to move capacity,plus a calendar.
Target tracking holds a metric at a value. Step scaling adds or removes more the further the metric is from its threshold. Simple scaling moves by a fixed amount. Scheduled actions set min, max and desired on a cron expression in your timezone. Scale-in and scale-out have separate cooldowns, the group has its own, and new instances get a warmup before their metrics count.
CPU drifts above the 50% target; the group adds instances until the average comes back to it, then waits out the scale-in cooldown before releasing them.
Illustrative policy behaviour
- Scale-out cooldown
- How soon after adding capacity a policy may add more.
- Scale-in cooldown
- How long a policy waits before removing capacity, so a dip does not shed what a spike needs.
- Group cooldown
- The default both fall back to.
- Instance warmup
- How long a new instance runs before its metrics count toward the group's average.
Which metrics drive a policy today
| Metric | State | How it works |
|---|---|---|
| CPU utilization | Automatic | Read by the reconciler every minute and acted on directly by target tracking, step and simple policies. |
| Memory utilization | Via alarm | Works when the policy is bound to a monitoring alarm; the alarm's transition fires the policy. |
| Network in | Via alarm | Works when the policy is bound to a monitoring alarm. |
| Network out | Via alarm | Works when the policy is bound to a monitoring alarm. |
Target tracking on memory or network without an alarm does not move capacity by itself yet. Bind an alarm from the policy, or track CPU. Monitoring alarms
Replace what fails.Register what launches.
Pick instance health checks or load-balancer health checks, with a grace period so a booting instance is not judged early. An instance that fails is replaced. Attach a target group and every instance the group launches is registered with it, and deregistered before it is retired.
Instance or load-balancer health
Instance checks watch the VM itself. Load-balancer checks use the target group's verdict, so an app that is up but failing its health path is replaced too.
Time to boot before judgement
Health is not evaluated until the grace period has passed, so user_data can finish installing before the first check.
Automatic registration
Instances are registered with the attached target group on launch and deregistered on scale-in, refresh or replacement.
Rotate hosts on a clock
Set a maximum lifetime and instances older than it are replaced, so no member runs indefinitely on a stale build.
Roll a new versionwithout dropping below the floor.
An instance refresh replaces members in batches until every one runs the target template version. Minimum and maximum healthy percentages bound how many can be out at once, warmup decides when a replacement counts, checkpoints pause the roll part-way, and a failed refresh can roll itself back. Skip matching leaves instances already on the target version alone; without it, every older instance is replaced, which is how you rotate hosts. A refresh can be cancelled at any point.
- Min healthy %
- Max healthy %
- Warmup
- Skip matching
- Checkpoints
- Auto-rollback
- Cancel
Illustrative refresh
The EC2 Auto Scaling toolkit,in your sovereign region.
Everything below is implemented in the regional control plane and exposed in the console.
Pause on launch or terminate
Hold an instance in a wait state while your own automation runs. Send a heartbeat to extend, complete to continue, or let the timeout apply the default result.
Pre-initialised capacity
Keep prepared instances beside the group with a minimum size and a maximum prepared capacity, and optionally return instances to the pool on scale-in instead of deleting them.
More than one machine size
Override the template's machine type with a list of others, for example dd.compute.4 and dd.gp.large, so a group is not tied to one size.
Balanced best effort, or balanced only
Spread members across multiple subnets in ap-south-3a and ap-south-3b. Best effort launches elsewhere when a zone cannot; balanced only refuses to skew.
Choose who leaves first
Default, OldestInstance, NewestInstance, OldestLaunchTemplate, ClosestToNextInstanceHour and AZRebalance.
Stop a process, keep the group
Suspend individual processes - launch, terminate, health checks, unhealthy replacement, zone rebalancing, alarm notifications, scheduled actions, load balancer registration, instance refresh - then resume them.
Per-instance protection
Mark an instance protected and scale-in passes over it. Put a member in standby, or detach it from the group, without terminating it.
Every launch and termination, with a cause
Each scaling activity is recorded with what triggered it, alongside group metrics and the group's tags.
The number of Auto Scaling groups per account is quota-limited (compute.autoscaling_groups), like every other resource on the account.
The group is free.You pay for what it runs.
There is no charge for an Auto Scaling group or a launch template. The VMs a group launches bill at the console's rates for their size and billing cycle, and any data volumes and static IPs they carry bill at their own rates. Scaling in is what saves money: an instance the group retires stops billing.
- Instance size
- Compute 4 (dd.compute.4)
- Hourly rate
- ₹6.63/hr
- Overnight, 14 h
- 2 instances
- Working hours, 10 h
- 6 instances
- Instance-hours
- 88
- Compute for the day
- ₹583.44
against ₹954.72 for 6 instances held all day
VM rate from the console's rate card at build time, excluding GST. Disks beyond the plan and static IPs are extra at their own rates. All VM rates
The concepts you already know
If you run EC2 Auto Scaling today, the vocabulary carries over. This is a map of concepts, not a claim that every AWS option exists here.
| EC2 Auto Scaling | DataDack Cloud |
|---|---|
| Launch template and versions | Launch template with versions and a default version |
| Min / desired / max capacity | Min / desired / max, with set-desired-capacity |
| Target tracking, step, simple scaling | All three; CPU automatic, memory and network via an alarm |
| Scheduled actions | Cron expression with a timezone, setting min, max and desired |
| EC2 / ELB health checks | Instance or load-balancer health checks with a grace period |
| Instance refresh | Min/max healthy %, warmup, skip matching, checkpoints, auto-rollback |
| Lifecycle hooks, warm pools | Heartbeat, complete and timeout; warm pool with reuse on scale-in |
| Termination policies | Default, OldestInstance, NewestInstance, OldestLaunchTemplate, ClosestToNextInstanceHour, AZRebalance |
| Suspend processes, scale-in protection, standby | All three |
| Region | Noida (ap-south-3), India |
Questions about Auto Scaling
What a group costs, which metrics it reacts to, and how it works with load balancers.