Compute Cost Optimization Strategies

Compute Cost Optimization Strategies An architecture diagram generated by Archify. Compute Cost Optimization · Largest EKS cluster cost component · Architecture component Compute Cost Optimization Largest EKS cluster cost component Instance Type Optimization · Family · Size · Generation · Architecture component Instance Type Optimization Family · Size · Generation Spot Instance Utilization · Workloads · MNG · Karpenter · Interruptions · Architecture component Spot Instance Utilization Workloads · MNG · Karpenter · Interruptions Savings Plans and Reserved Instances · Compute SP · EC2 Instance SP · RI · Architecture component Savings Plans and Reserved Instances Compute SP · EC2 Instance SP · RI Auto Scaling Optimization · CA · Karpenter · HPA · VPA · Architecture component Auto Scaling Optimization CA · Karpenter · HPA · VPA Fargate vs EC2 Cost Comparison · vCPU/memory billing vs node billing · Architecture component Fargate vs EC2 Cost Comparison vCPU/memory billing vs node billing Legend K8s autoscaler AWS compute option Cost component

Spot Instance Utilization

  • • Suitable workload types: stateless, fault-tolerant, batch processing, CI/CD
  • • Managed node groups (eksctl --spot) or Karpenter NodePool (capacity-type: spot)
  • • Interruption handling: spread across instance types and AZs, AWS Node Termination Handler

Savings Plans and Reserved Instances

  • • Compute Savings Plans
  • • EC2 Instance Savings Plans
  • • Reserved Instances

Auto Scaling Optimization

  • • Cluster Autoscaler
  • • Karpenter
  • • Horizontal Pod Autoscaler
  • • Vertical Pod Autoscaler