Cloud Capacity Management

Executive Summary: Handling Resource Constraints When Scaling SaaS on AWS and Azure

Compiled: April 8, 2026 | Full analysis: cloud-capacity-management.md

The Problem

Cloud Capacity Constraints

When your SaaS scales, the cloud may not have resources in the requested zone/instance type:

Without automation: scaling fails silently, services degrade, and on-call gets paged at 3 AM.

Key Finding: Both AWS and Azure now offer native fleet-level APIs (EC2 Fleet / Azure Compute Fleet) that handle multi-SKU, multi-zone allocation automatically. These should be the foundation. Supplement with Kubernetes-native tools (Karpenter/KEDA) for containerized workloads and commercial tools (Spot.io, Cast.ai) for managed optimization.

AWS vs Azure: Native Capabilities

AWS

  • ASG Mixed Instance Policy — Multiple types + zones + weighted capacity. Instance weighting enables "3×4vCPU OR 1×16vCPU" natively. Free
  • Attribute-Based Instance Selection (ABIS) — Define requirements (vCPUs, RAM, arch) instead of listing types. AWS matches dozens of types automatically. Free
  • EC2 Fleet — Single API call across types, zones, Spot+On-Demand. instant mode probes capacity synchronously. Free
  • Capacity Reservations + Groups — Guarantee physical capacity. Pool across AZs/types. On-Demand Rate
  • Predictive Scaling — ML-based pre-provisioning based on traffic patterns. Free
  • Compute Optimizer — Right-sizing recommendations from CloudWatch data. Free
  • Capacity Blocks for ML — Reserve GPU instances for time windows. Block Pricing

Azure

  • VMSS Flexible Orchestration — Mix VM SKUs in one scale set. zoneBalance: false allows uneven distribution when zones are constrained. Free
  • Azure Compute Fleet (GA 2025) — Multi-SKU, multi-zone, mixed pricing in single API. Prioritized SKU list with automatic fallback. Free
  • Capacity Reservations + Groups — Guarantee capacity. Share across subscriptions. On-Demand Rate
  • Spot VMs + Try-Restore — Up to 90% discount. Auto-restore when capacity returns. Discounted
  • Predictive Autoscale — ML-based pre-scaling (Preview). Free
  • Azure Advisor — Right-sizing recommendations from utilization data. Free
  • VM Size Flexibility — RI billing applies across same-series sizes. Free

Head-to-Head Comparison

Capability AWS Azure Verdict
Multi-type auto-scaling ASG Mixed Instance Policy VMSS Flexible Orchestration AWS (more mature)
Fleet-level provisioning EC2 Fleet (GA, mature) Azure Compute Fleet (GA 2025) AWS (longer track record)
Attribute-based selection ABIS (GA, powerful) Not available natively AWS (unique advantage)
Instance weighting / vCPU targeting ASG weighted capacity Fleet target capacity (vCPUs) Tie
Capacity reservations ODCRs + Groups Cap. Reservations + Groups Tie (both charge full rate)
Spot management Spot Fleet / EC2 Fleet Spot VMs + Try-Restore AWS (more allocation strategies)
Predictive scaling Predictive Scaling (GA) Predictive Autoscale (Preview) AWS (GA vs Preview)
Right-sizing advisor Compute Optimizer Azure Advisor Tie
GPU capacity blocks Capacity Blocks for ML Not available AWS (unique)
Zone failover behavior ASG multi-AZ + rebalancing VMSS zoneBalance options Azure (zoneBalance:false is more explicit)
Pre-flight capacity check describe-instance-type-offerings az vm list-skus Tie
Kubernetes autoscaler Karpenter (GA, best-in-class) Karpenter (Preview) / Cluster Autoscaler AWS (Karpenter GA)

Summary: AWS has a more mature and feature-complete native capacity management story, particularly with ABIS, EC2 Fleet, and Karpenter. Azure's Compute Fleet (GA 2025) closes the gap significantly, but lacks attribute-based selection and has predictive scaling still in preview.

Graceful Degradation Flow

1. Request scaling (N instances of type X in zone A) | v 2. Try preferred config ------> Success: DONE | Capacity error v 3. Try same type, other zones (B, C) ------> Success: DONE | All zones exhausted v 4. Try equivalent types (same vCPU/mem, different family) in all zones ------> Success: DONE | All types exhausted v 5. Try capacity-equivalent substitution (fewer larger instances) ------> Success: DONE | All substitutions exhausted v 6. STOP. Do NOT proceed. -> Alert operations team -> Queue incoming requests -> Activate degraded mode -> Consider cross-region failover

Multi-Layer Defense Architecture

5
Governance
Cloud Custodian, Scalr — enforce capacity-resilient configs
4
Financial
Zesty, Infracost, Densify — optimize purchasing model (RI, Savings Plans, Spot mix)
3
IaC Definition
Terraform / Pulumi — define mixed-instance, multi-zone infrastructure patterns
2
Provisioning
Karpenter, EC2 Fleet, Azure Compute Fleet — smart instance selection + zone failover
1
Demand Reduction
KEDA (scale-to-zero), Granulate (runtime optimization), ParkMyCloud (scheduling)

Complete Tools Comparison

Tool Type AWS Azure Multi-SKU Multi-Zone Spot Cost
ASG Mixed Instances Native Yes — Yes Yes Yes Free
EC2 Fleet Native Yes — Yes Yes Yes Free
ABIS Native Yes — Auto Auto Yes Free
Capacity Reservations Native Yes Yes Per-SKU Yes No On-Demand rate
VMSS Flexible Native — Yes Manual Yes Yes Free
Azure Compute Fleet Native — Yes Yes Yes Yes Free
Karpenter OSS Yes Preview Yes Yes Yes Free
Cluster Autoscaler OSS Yes Yes Via pools Yes Yes Free
KEDA OSS Yes Yes Indirect Indirect Indirect Free
Terraform OSS Yes Yes Patterns Patterns Patterns Free / Paid cloud
Pulumi OSS Yes Yes Native Native Native Free / Paid cloud
Cloud Custodian OSS Yes Yes Policy Policy Policy Free
Spot.io (NetApp) Paid Yes Yes Auto Auto Core ~25% of savings
Cast.ai Paid Yes Yes Auto Auto Auto % of savings
Densify Paid Yes Yes Advisory Advisory Advisory $50K-500K+/yr
Turbonomic (IBM) Paid Yes Yes Auto Advisory Advisory $100K-1M+/yr
Granulate (Intel) Paid Yes Yes Reduces demand (runtime optimization) Per-core
Zesty Paid Yes — RI/Savings Plan automation % of savings
CloudHealth (Broadcom) Paid Yes Yes Advisory Advisory Advisory $100K-500K+/yr

Recommendations by Workload Type

VM-Based Workloads (Non-Kubernetes)

Foundation (Free)

Must-Have Baseline

  • AWS: ASG Mixed Instance Policy + ABIS + capacity-optimized across 3+ AZs
  • Azure: Compute Fleet with prioritized SKUs across 3 zones + zoneBalance: false
  • Enable Compute Optimizer / Azure Advisor
  • Pre-flight capacity check scripts
Enhanced (Low Cost)

Operational Maturity

  • Terraform/Pulumi modules encoding multi-type, multi-zone patterns
  • Infracost in CI/CD for cost-aware selection
  • CloudWatch/Azure Monitor alerts on scaling failures
  • Cloud Custodian for policy enforcement
Premium (Paid)

Managed Optimization

  • Spot.io Elastigroup for managed Spot + capacity failover
  • Densify for capacity forecasting
  • Capacity Reservations for critical baseline
  • Turbonomic for full-stack automation

Kubernetes Workloads

Foundation (Free)

Must-Have Baseline

  • AWS/EKS: Karpenter with broad NodePool (5+ families, all AZs, Spot+On-Demand)
  • Azure/AKS: Multiple node pools with different SKUs + Cluster Autoscaler priority expander
  • KEDA for event-driven scaling + scale-to-zero
Enhanced (Low Cost)

Operational Maturity

  • Cast.ai free tier for visibility + optimization recommendations
  • Cloud Custodian for K8s policy enforcement
  • Infracost for IaC cost awareness
Premium (Paid)

Managed Optimization

  • Spot.io Ocean for managed K8s infra
  • Cast.ai paid tier for automated optimization
  • Turbonomic for full-stack automation

Quick Wins (Immediate Impact)

  1. Stop pinning to a single instance type. Use 5+ types across 2+ families. This alone resolves most capacity failures.
  2. Use all available AZs (typically 3). For Azure VMSS, set zoneBalance: false to allow uneven distribution when zones are constrained.
  3. Use capacity-optimized or price-capacity-optimized allocation strategy (AWS). Use CapacityOptimized in Azure Compute Fleet.
  4. Add instance weighting so the autoscaler can substitute larger instances when smaller ones are unavailable (3×4vCPU → 1×16vCPU).
  5. Add pre-flight capacity checks in deployment scripts before attempting provisioning.
  6. Set alerts on ASG GroupDesiredCapacity != GroupInServiceInstances (AWS) or VMSS allocation failures (Azure).

Commercial Tools: When Are They Worth It?

Tool Best For Break-Even Point Typical Savings
Spot.io Teams without Spot expertise; stateful workloads on Spot ~50 instances 50-80% on Spot workloads
Cast.ai K8s teams wanting automated multi-cloud optimization ~30 nodes 50-70% on K8s compute
Densify Enterprise with complex hybrid environments; capacity planning $500K+ cloud spend 20-40% right-sizing savings
Turbonomic Large enterprise needing full-stack automated optimization $1M+ cloud spend 30-50% across full stack
Granulate CPU-intensive workloads (Java, data processing) ~20 cores 20-60% CPU reduction