Containers on EKS should scale on SQS queue depth. How?
IntermediateScenarioECS, EKS, Lambda and ECR
Answer
Situation read → KEDA scales pods on external metrics.
What I'd do →
- Install KEDA
- Create a
ScaledObjectwith anaws-sqs-queuetrigger andqueueLength20 - Authenticate using Pod Identity
- Set min and max replicas
- Combine with Karpenter for nodes
Why → Queue depth reflects work to do better than CPU.
Interview tip → Scale-to-zero is possible.
More on ECS, EKS, Lambda and ECR
ECS on Fargate or on EC2: how do you choose?BeginnerDeploy a containerized API on ECS behind an ALB. What are the building blocks?BeginnerAn ECS service deployment is stuck, tasks start and stop repeatedly. How do you debug?IntermediateRoll out a new ECS service version with canary and automatic rollback.IntermediateEKS pods need access to S3 without node-level permissions. How?IntermediateUpgrade an EKS cluster from 1.31 to 1.33 safely.Intermediate