Answer the question
In order to leave comments, you need to log in
Load balancing across multiple frontends for fault tolerance and highload?
I would like to know how the load is balanced between several front-end servers.
I know about the method with several A records in DNS with a small TTL. I know that some devices are used by the type of virtual IP, which, in the event of a failure of the main server, is tied to the backup.
This is all good, of course, but how do they balance between frontends in real HIGHLOAD projects, where fault tolerance is important?
Answer the question
In order to leave comments, you need to log in
magic boxes (balancers). How they are arranged I need to know.
Nowadays, most often Kubernetes scatters requests across pods, in which both web servers with front statics and backend microservices spin.
If you do not have a cloud, but physical servers, then you need a couple of balancer servers with a floating VIP.
How to organize VIP migration - for example, keepalived, pacemaker,
how to organize balancing - you need to select for tasks from the good old L4 balancer LVS (Linux Virtual Server) in DR mode for maximum return, to ordinary nginx and haproxy which can both L4 and L7.
1) Uses a cluster(s) of load balancers.
They are built either on their own, or use ready-made cloud services.
An example of the first, except for open source products, is https://www.f5.com/products/big-ip-services/iserie... .
An example of cloud services is Network/Application Load Balancer on AWS.
2) When you need to give different servers for different countries (geolocation) - there are solutions for building your own and ready-made services
See "geolocation dns" in Google for details.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question