Handling Server Failures in Cluster with Load Balancer

TLDR Saurabh asked about handling server failures in their cluster set-up. Jason suggested having an odd number of nodes, at least 3, to tolerate a 1 node failure.

Photo of Saurabh
Fri, 23 Jun 2023 21:24:04 UTC

hi team !! I have set-up 2 clusters with a load balancer !!!! If one server goes down, the other server also goes down? how can we handle this ?

Photo of Jason
Fri, 23 Jun 2023 21:31:31 UTC

I assume you meant 2 nodes in a single cluster (and not two separate clusters). You need an odd number of nodes to form a stable cluster. So you’d need at least 3 nodes, to make sure that the cluster can tolerate a 1 node failure.