免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2390 | 回复: 1

LVS学习路程疑问集.第一问带复制的基于局部性最少链接(LBLCR) [复制链接]

论坛徽章:
0
发表于 2008-03-04 16:53 |显示全部楼层
开始学习LVS,这个帖子俺就作为一个问题集,记录一些自己无法理解以及因为实际条件限制而无法验证的问题,同时希望各位前辈能够给予指点.
今天第一个问题:概念相关
IPVS的八种调度算法中有一种叫做
带复制的基于局部性最少链接(Locality-Based Least Connections with Replication)
"带复制的基于局部性最少链接"调度算法也是针对目标IP地址的负载均衡,目前主要用于Cache集群系统。它与LBLC算法的不同之处是它要维护从一个目标IP地址到一组服务器的映射,而LBLC算法维护从一个目标IP地址到一台服务器的映射。该算法根据请求的目标IP地址找出该目标IP地址对应的服务器组,按"最小连接"原则从服务器组中选出一台服务器,若服务器没有超载,将请求发送到该服务器,若服务器超载;则按"最小连接"原则从这个集群中选出一台服务器,将该服务器加入到服务器组中,将请求发送到该服务器。同时,当该服务器组有一段时间没有被修改,将最忙的服务器从服务器组中删除,以降低复制的程度。

查了下英文资料
The locality-based least-connection with replication (LBLCR) scheduling algorithm is also for destination IP load balancing. It only differs from the locality-based least-connection (LBLC) scheduling as follows: the load balancer maintains mappings from a target to a set of server nodes that can serve the target. Requests for a target are assigned to the least-connection node in the target's server set. If all the node in the server set are over loaded, it picks up a least-connection node in the cluster and adds it in the sever set for the target. If the server set has not been modified for the specified time, the most loaded node is removed from the server set, in order to avoid high degree of replication.

有这么两个问题
1、中文资料中的服务器组(英文资料中的target)和集群(cluster)之间是什么关系?
2、个人对上一个问题的理解是,服务器组是这个集群的一部分,那这个集群中除了这个服务器组以外的那部分是做什么用的?
呵呵,问题可能很小白了。还是希望前辈指条光明大道! 谢谢

论坛徽章:
0
发表于 2008-03-04 17:31 |显示全部楼层
呵呵,我最近在做cache集群试验,也在看这个,我说说我的理解,不知道对不对

比如说集群中有5台real server,分别为A,B,C,D,E,按理说是每个网站的缓存基本固定在每台real server上。比如说163缓存在A上,sina缓存在B上…………加入很多用户都访问163,那么服务器A肯定会超载,假如这时服务器B负载比较低,那么它就会调度到B服务器上。这时A和B服务器都是你说的那个服务器组了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP