Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What can we do when load balancer becomes the bottleneck?

I just started learning load balancers. Taking a server side application (http/https) load balancer as an example, I assume it listens a specific ip address, then forward the http requests to available servers based on its algorithm.

So is it possible for a load balancer to become a bottleneck? Because it's listening a specific ip address, all requests will first go to the single load balancer. So I think there could be a scenario where the amount of traffic is beyond the limit/capacity of the load balancer.

When it becomes a bottleneck, what can we do? Can we use multiple load balancers?

I think one possible solution is to use multiple load balancers and expose all the ips to clients. (This sounds like client side load balancing) So when a client wants to send a request, it can pick from the ip pool and then send a request to one of the load balancers. (For example, ZooKeeper could be used here.) Is this a working solution? Is there any other way to use multiple load balancers?

Thanks. Ethan

like image 882
Yuxiong Zhu Avatar asked Mar 16 '19 20:03

Yuxiong Zhu


People also ask

Can load balancer be bottleneck?

Bottlenecks. As scale increases, load balancers can themselves become a bottleneck or single point of failure, so multiple load balancers must be used to guarantee availability. DNS round robin can be used to balance traffic across different load balancers.

What will happen if load balancer is down?

If a single server goes down, the load balancer redirects traffic to the remaining online servers. When a new server is added to the server group, the load balancer automatically starts to send requests to it.

How can I improve my load balancing performance?

To achieve better performance, minimum and fast response time and high resource utilization we need to transfer the tasks between different nodes in the cloud network. The load balancing technique is used to distribute tasks from overloaded nodes to underloaded or idle nodes.

How can you prevent load balancer from being a single point of failure?

We recommend trying to keep virtual nodes on different hosts where possible. If you only have one host and this goes down, the host becomes your single point of failure. Having two virtual hosts, with a load balancer on each, again ensures redundancy through the whole network chain.


1 Answers

Your last suggestion works with adding a little twist: The usual approach is to publish the load balancer IP addresses under the same domain name.

This is called DNS load balancing. Clients will ask for the IP resolution for your load balancer's domain name and they will get different IP addresses on a round-robin fashion.

To configure DNS load balancing you have to add multiple A records for your load balancer's domain name to your DNS configuration. Here you can find an example guide for that.

like image 90
Oresztesz Avatar answered Oct 19 '22 18:10

Oresztesz