Interview Prep/Kubernetes/Resources, autoscaling and scheduling

You need to scale on queue length or requests per second, not CPU. How?

IntermediateScenarioResources, autoscaling and scheduling
Answer

Situation read → A worker Deployment should scale on SQS depth.

What I'd do →

  1. Install KEDA
  2. Create a ScaledObject with an SQS trigger and queueLength
  3. Use IRSA for access
  4. Allow scale to zero with minReplicaCount: 0 where acceptable
  5. Check kubectl get hpa since KEDA creates an HPA behind the scenes

Why → External metrics reflect real load for async workers better than CPU.

Interview tip → Mention Prometheus Adapter as the other route for custom metrics.

All Kubernetes questions Roadmap: Kubernetes core

More on Resources, autoscaling and scheduling