0
0
Microservicessystem_design~5 mins

Horizontal Pod Autoscaler in Microservices - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a Horizontal Pod Autoscaler (HPA) in Kubernetes?
HPA automatically adjusts the number of pods in a deployment based on observed CPU utilization or other select metrics to maintain application performance.
Click to reveal answer
intermediate
Which metrics can Horizontal Pod Autoscaler use to scale pods?
HPA can use CPU utilization, memory usage, or custom metrics like request rate to decide when to scale pods up or down.
Click to reveal answer
intermediate
How does HPA decide when to increase or decrease pod count?
HPA compares current metric values against target thresholds. If usage is above the target, it adds pods; if below, it removes pods to optimize resource use.
Click to reveal answer
advanced
What is the difference between Horizontal Pod Autoscaler and Vertical Pod Autoscaler?
Horizontal Pod Autoscaler changes the number of pods, while Vertical Pod Autoscaler changes the resource requests and limits (CPU/memory) of existing pods.
Click to reveal answer
intermediate
Why is it important to set minimum and maximum pod limits in HPA?
Setting min and max pod limits prevents scaling too low (causing performance issues) or too high (wasting resources), ensuring stable and efficient operation.
Click to reveal answer
What does Horizontal Pod Autoscaler primarily adjust in a Kubernetes cluster?
ANetwork bandwidth
BCPU limits of pods
CMemory limits of pods
DNumber of pods
Which metric is commonly used by HPA to trigger scaling?
ADisk space usage
BCPU utilization
CNumber of nodes
DPod restart count
What happens if the current CPU usage is below the target in HPA?
APods are removed
BPods remain the same
CPods are added
DNodes are added
Which Kubernetes component typically manages the Horizontal Pod Autoscaler?
Akube-controller-manager
Bkube-scheduler
Ckube-proxy
Detcd
Why should you avoid setting the maximum pod count too high in HPA?
AIt slows down pod startup
BIt can cause pod starvation
CIt wastes cluster resources
DIt causes network congestion
Explain how Horizontal Pod Autoscaler works to maintain application performance.
Think about how a thermostat adjusts temperature automatically.
You got /5 concepts.
    Describe the key differences between Horizontal Pod Autoscaler and Vertical Pod Autoscaler.
    One changes quantity, the other changes size.
    You got /4 concepts.