Bird
0
0

Why is it important to set different failure thresholds for liveness and readiness probes in a production microservice?

hard📝 Conceptual Q10 of 15
Microservices - Orchestration with Kubernetes
Why is it important to set different failure thresholds for liveness and readiness probes in a production microservice?
ATo avoid unnecessary restarts while ensuring traffic is routed only to healthy pods
BTo make sure pods restart immediately on any failure
CTo disable readiness probes when liveness probes fail
DTo reduce CPU usage by skipping probes
Step-by-Step Solution
Solution:
  1. Step 1: Understand probe failure thresholds

    Failure thresholds control how many failures trigger action (restart or traffic removal).
  2. Step 2: Balance restart and traffic routing

    Setting thresholds avoids frequent restarts but ensures traffic only goes to healthy pods.
  3. Final Answer:

    Different thresholds prevent unnecessary restarts and ensure healthy traffic routing -> Option A
  4. Quick Check:

    Threshold tuning balances stability and availability [OK]
Quick Trick: Tune failure thresholds to balance restarts and traffic flow [OK]
Common Mistakes:
MISTAKES
  • Restarting pods immediately on any failure
  • Disabling readiness probes incorrectly
  • Ignoring probe resource impact

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes