Orkestia
Blog
Runners

EC2 Auto Scaling

Runner group kind backend_type=ec2_auto_scaling — an EC2 Auto Scaling group plus ECS capacity provider in your AWS account

backend_type: ec2_auto_scaling. Connection: AWS. Status: production.

The group is an EC2 Auto Scaling group that feeds an ECS capacity provider. Executions land as ECS tasks on those instances, not as one-shot Fargate tasks and not as a dedicated VM per job.

When to choose it

  • You want always-on (or min-sized) EC2 capacity that ECS can place tasks onto.
  • Instance type, VPC, and Spot price need to be first-class group config.
  • Fargate's per-task billing or networking model is a poor fit, but you still want ECS as the scheduler.

Choose Fargate for serverless tasks. Choose EC2 VM for one instance per execution with the warm-pool VM controller.

Connection

An AWS connection. Placement uses the group's region plus optional vpc_id / subnet_ids.

Required config

KeyTypeMeaning
instance_typestringEC2 instance type for ASG members (e.g. t3.medium).

Optional knobs

vpc_id, subnet_ids, security_group_ids, cluster_name (ECS cluster backing the capacity provider), capacity_type (ON_DEMAND / SPOT), spot_max_price.

Provisioning

Environment DAG orientation: runner.environment-provision-ec2 / runner.environment-deletion-ec2. Confirm current names before calling them from MCP.

Purposes

Same as every AWS kind — CI or agent. Do not reuse an Actions ASG as an agent pool; create purpose=agent from the start.