Skill 3.3.4

Manage sizing and scaling for containers, including Azure Container Instances and Azure Container Apps

Key Concepts

In Container Instances, each container in a group specifies CPU cores and memory in GB, and the group's total must fit within the regional limits for the OS type. Resources of a running container group cannot be changed: to resize, update the YAML or template and redeploy the group, which restarts its containers. ACI has no autoscaling, so scaling out means creating more container groups, typically by automation, or moving to Container Apps or AKS.

In Container Apps, each container is given CPU and memory in fixed combinations (for example 0.5 vCPU with 1 GiB) up to the limits of the workload profile. Scale rules set the number of replicas between a minimum (default 0) and a maximum (default 10), based on concurrent HTTP requests, TCP connections, CPU or memory, or any KEDA-supported event source such as Azure Service Bus queue length. With a minimum of 0, the app scales to zero and costs nothing when idle, at the price of a cold start; a minimum of 1 or more keeps it warm.