Grokking Operating Systems and Networking for Backend Engineers
Vote

0% completed

​

Health Checks and Connection Draining

A deploy restarts one of Checkout's two servers. The restart takes a few seconds, and the load balancer's log for those seconds contains one 502 and six 503 replies, each 503 arriving 3 seconds after the customer pressed the button. Later, the same server is stopped again with one change in its code, and not a single order fails.

The change is a few lines of signal handling. It lets the server tell the balancer that it is leaving, and then keep working until the balancer has stopped sending it orders.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content