SLB

Server Load Balancing -- 服务器负载平衡
SLB全称Server Load Balancing,可以看作HSRP(热备份路由器协议)的扩展,实现多个服务器之间的负载均衡。   虚拟服务器代表的是多个真实服务器的群集,   客户端向虚拟服务器发起连接时,通过某种负载均衡算法,转发到某真实服务器。   负载均衡算法有两种:   Weighted round robin(WRR)和Weighted least connections(WLC),   WRR使用加权轮询算法分配连接,WLC通过一定的权值,将下一个连接分配给活动连接数少的服务器
SLB配置
  配置分为两部分,   第一部分是使用slb serverfarm serverfarm_name命令定义SLB选项,包括指定真实服务器地址;   第二部分是使用ip slb vserver virtual_server-name来指定虚拟服务器地址。   router#config t   router(config)#ip slb serverfarm http(名称)   router(config-slb-sfarm)#real 192.168.1.1   router(config-slb-sfarm)#inservice   router(config-slb-sfarm)#real 192.168.1.2   router(config-slb-sfarm)#inservice   router(config-slb-sfarm)#exit   router(config)#ip slb vserver vserver1   router(config-slb-vserver)#vitual 10.1.1.1 TCP(协议) 80 (端口)   router(config-slb-vserver)#serverfarm http(名称)   router(config-slb-vserver)#inservice   router(config-slb-vserver)#exit   router(config)#exit   router#


相关词条:
GSLB  
 
贡献者:
jxwnwhwangmingcisco
Copyright © 1999-2024 C114 All Rights Reserved | 联系我们 | 沪ICP备12002291号-4