We use analytics cookies.We use cookies to analyze site traffic and improve your experience.
Loading...
System Design Masterclass · Load Balancing Proxies
Free preview: the first 2 parts of this 7-part lesson.
Already bought the course? Sign in to read the whole lesson.
this lesson is part of
System Design Masterclass
Unlock this lesson and the 751 other paid lessons
$25 once, by PayPal
See the System Design courseread the rest of this lesson in
System Design Masterclass
Unlock this lesson and the 751 other paid lessons
$25 once, by PayPal
See the System Design coursein Load Balancing Proxies
This lesson is part of the full System Design Masterclass. Unlock it along with 769 other lessons for a one-time payment.
One-time payment by card or PayPal
Get Lifetime AccessOne-time payment: UPI, card or netbanking
Get Lifetime Access18 Foundation lessons are free, no payment needed. Try them now
It is easy and good
“It is really nice and good Please join the course”
Failover is the simplest rule in this chapter. Use the primary. If something says the primary is broken, use the standby.

The swap is instant and trivial. Everything difficult about this lesson is in deciding that the moment has come, and in what the standby has been doing meanwhile.
Two consequences follow immediately. The detection is the whole mechanism, and the standby carries no traffic, which means nobody has tested it.

The failover itself takes no time at all. The window before it is the outage, and its length is a number you chose.
Here is that window, measured on a real with real timing.

Eleven of forty requests failed on the way to a correct, fast failover. That is not a bug. That is the window.
The second block is the more important one, and it is about what the check is actually asking.

A process can answer a health endpoint perfectly while being completely unable to serve a request. The capture shows a shallow check never noticing that at all.
There is a real tension here. A deep check sees the failure that matters, and it can also fail for a shared reason, marking every instance unhealthy simultaneously and turning a degradation into a complete outage. The usual balance is a shallow check wired to the and a deep check wired to alerting.

The probe configuration is the part people tune. The downstream of the decision is the part that dominates.
Do this multiplication before choosing a mechanism. If the sum is in minutes and the request rate is high, no amount of probe tuning helps.