基于接近度的负载均衡 [英] Load balancing based on proximity

查看:74
本文介绍了基于接近度的负载均衡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我们的服务器数量(目前为5个)遍布全球,那么我正在研究一个项目. 客户端通过集中代理连接到这些服务器之一. 我们知道客户的原籍国,但仅此而已.我们对服务器具有完全控制权,因此我们可以获得有关这些服务器的所有信息. 我们不控制客户,他们必须按照标准通过此代理进行连接.

I'm working on a project were we have number (5 at the moment) of servers spread across the world. Clients connect to one of those servers through a centralized broker. We know the originating country of the client but nothing else. We have full control of the servers so we can have all the info we need on those. We don't control the clients, they have to connect through this broker as according to standard.

经纪人选择延迟低的服务器非常重要,因此对于我们拥有的数据,我认为接近性是我们唯一可用的标准.

It's important that the broker picks a server that has low latency so with the data we have I think proximity is our only available criteria.

首先想到的是从每个服务器ping客户端,但是我们没有IP,只有国家/地区.

The first idea that came in mind is pinging the client from each server but we don't have an ip, only the country.

我们的另一个想法是从每个服务器ping每个国家中的根节点.问题是在每个国家/地区都找到根节点.

Other idea we had is to ping a root node in each country from each server. The problem there is finding a root node in each country.

您是否知道如何计算/查找国家/地区"之间的邻近度? 您对如何以其他方式解决此问题有任何见解或想法吗?

Do you have any idea how to calculate/lookup proximity between "countries"? Do you have any insights or ideas on how to solve this problem in another way?

推荐答案

我认为您需要的术语是地理负载平衡".大多数主要的负载平衡供应商都在这里提供了解决方案-您的经纪人可以使用这些解决方案.

I think the term you need is "geographic load balancing". Most of the major load balancing vendors have a solution here - your broker could use of these.

谷歌搜索地理负载平衡获取一些有用的结果.

Googling geographic load balancing gets some useful looking results.

这篇关于基于接近度的负载均衡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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