🔵

Health Checks in Load Balancing

  • Purpose: Allow the load balancer to determine if target instances are healthy and able to serve traffic.
  • How it works:
    • The load balancer periodically sends requests to a specific port and path (e.g., /health).
    • A healthy target typically responds with HTTP 200 OK (or other configured success codes).
    • If the target fails to respond within the configured timeout or returns an error status code, it is marked unhealthy.
  • Impact:
    • Unhealthy targets are automatically removed from the load balancer’s rotation until they pass health checks again.
    • Ensures traffic is only sent to healthy instances, improving availability and user experience.