当负载均衡器成为瓶颈时,我们该怎么办? [英] What can we do when load balancer becomes the bottleneck?

查看:176
本文介绍了当负载均衡器成为瓶颈时,我们该怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始学习负载均衡器.以服务器端应用程序(http/https)负载均衡器为例,我假设它监听特定的IP地址,然后根据其算法将http请求转发到可用的服务器.

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.

那么负载均衡器有可能成为瓶颈吗?因为它正在侦听特定的 ip 地址,所以所有请求将首先转到单个负载均衡器.因此,我认为在某些情况下,流量可能会超出负载均衡器的限制/容量.

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?

我认为一种可能的解决方案是使用多个负载平衡器并将所有ip公开给客户端.(这听起来像客户端负载平衡)因此,当客户端要发送请求时,它可以从ip池中进行选择,然后将请求发送到负载平衡器之一.(例如,可以在此处使用ZooKeeper.)这是可行的解决方案吗?还有其他使用多个负载均衡器的方法吗?

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?

谢谢.伊桑(Ethan)

Thanks. Ethan

推荐答案

您的最后一个建议是稍微加点修改:通常的方法是将负载均衡器IP地址发布到相同的域名下.

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.

这称为 DNS负载平衡.客户将要求您的负载平衡器的域名的IP解决方案,并且他们将在轮回中获得不同的IP地址.-robin fashion .

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.

要配置DNS负载平衡,您必须将负载平衡器域名的多个A记录添加到DNS配置中.在这里,您可以查找有关该示例的指南.

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.

这篇关于当负载均衡器成为瓶颈时,我们该怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆