Concepts / Load balancing

Load balancing

Health check

Also called /health, draining, redispatch, failover

A regular probe a load balancer sends each backend, to stop using those that fail.

A real question, asked again and again
A real question, asked again and again

A frozen program still accepts connections, so the check must send a real request. Two missed answers take the server out; two good ones put it back.

A health check is a probe a load balancer sends each backend regularly, to skip those that fail. A good check sends a real request (GET /health), not just a connection: a frozen program still completes the TCP handshake, because the operating system does that. fall 2 takes a backend out after two failures, rise 2 puts it back after two successes: failover. A wrong check path removes working servers.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab