LVS集群

LVS集群技术、系统、安装和使用

多二级域名的lvs部署

这样的一个应用 有一个http://static.xxx.com 二级域名来处理所有的表态文件(js/css/img)类的请求, 一个http://pay.xxx.com用来处理支付类的请求 一个http://account.xxx.com 来处理登录/注册等帐户类的请求, 每个二级域名都是独立部署

Forums:

ip tunnel模式的详细分析

在ip tunnel模式下,一旦连接建立成功;client端到LD的报文后是如何转发的,即由于client和RS之间是长连接,那么LD收到报文后是如何知道要转到固定的RS来处理的,是否在"/proc/net/ipvs..."下有类似的连接保持文件?欢迎大家讨论

Forums:

关于ActiveConn分布不均衡的讨论,望不吝赐教--------问题已得到解决

master151_11:~ # ipvsadm -ln
IP Virtual Server version 1.2.1 (size=1048576)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 172.16.151.45:28000 wrr
-> 172.16.151.35:28000 Tunnel 1 82 7
-> 172.16.151.34:28000 Tunnel 1 118 5
-> 172.16.151.33:28000 Tunnel 1 118 2
-> 172.16.151.30:28000 Tunnel 1 123 5
TCP 172.16.151.44:28000 wrr

Forums:

实作每一台real server都为备援dispatcher的架构

我的LVS环境是一台VIRTUAL SERVER加六台REAL SERVER(RS1-RS6)
现想实作出以下架构:
一台VIRTUAL SERVER加六台REAL SERVER都安装ipvsadm套件,
想实作出:
Virtual server fail后就把控制权移给RS1,则RS1就为virtual server,
来转发封包给RS2-RS6,如RS1 fail,则RS2就为virtual server,负责转发封包给RS3-RS6,………以此类推.
请问有人有实作过以上类似环境吗?有无啥好建议??

Forums:

LVS+keepalived+squid+nginx 无法访问问题。小菜鸟请大家帮忙

我的架构是这样LVS+keepalived+squid+nginx
lvs1 172.16.3.196
lvs2 172.16.3.197
VIP: 172.16.3.198
squid1:172.16.3.92
squid2:172.16.3.199
nginx: 172.16.3.240
squid 可以访问到nginx,然后squid两台也绑定的ARP。现在问题是配置出来的虚拟IP172.16.3.198不能访问到nginx WEB网站.不知道是为什么。请高手解答
lvs上ipvsadm显示,也会正常的切换。
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn

Forums:

源码方式安装的apache,但启动piranha时提示找不到httpd

如题,安装piranha的时候也提示过,需要安装httpd和php,不过我之前用源码方式安装好了apache和php,所以安装piranha的时候就强行安装的,也就是通过如下命令安装的

rpm -ivh piranha* --nodeps

安装成功了,接着问题就出现了.

/etc/init.d/piranha-gui start //启动piranha的时候有如下提示
/usr/sbin/piranha_gui symlink to httpd program is missing

Forums:

关于ldirectord作dns负载均衡的问题

我配置了了一个dns的负载均衡,由两台pc组成,这两台pc同时承担director和real server的功能。两台服务器上分别运行named,ldirectord在两台pc之间互备。正常情况下,集群已经能正常工作。

但是有个问题:
1.初始状态为pc2上运行ldirectord,pc1,pc2分别运行named,用客户端脚本(是个死循环脚本)测试dns查询,正常;
2.停止pc1上的named服务,到pc2上查看ipvsadm -Ln,发现已经没有到pc1的项;

Forums:

keepalived如果设置可以使得LVS的UDP负载均衡可用?

我自己写了一个UDP的文件传输程序服务端,端口开在8090。 VIP地址是10.45.8.200。服务端配置不是本地地址,而是VIP地址。
我写的keepalived.conf文件
global_defs {
router_id LVS_DEVEL_1
}

vrrp_sync_group G1 {
group {
VI_1
VI_2
}
}

vrrp_instance VI_1 {
state MASTER  # ha2 机器为 BACKUP
interface eth0
virtual_router_id 51
priority 102    #ha2 机器为 101
advert_int 1

authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
10.45.8.200
}
}
virtual_server 10.45.8.200 80 {
delay_loop 6

Forums:

lvs mysql负载均衡的问题ldirect日志checktype must be "connect", "negotiate", "on", "off", "ping", "external" or a positive number

我的配置如下:我要同时提供http和mysql的负载

ldirectord.cf
checktimeout=3
checkinterval=1
fallback=127.0.0.1:80
autoreload=yes
logfile="/var/log/ldirectord.log"
#logfile="local0"
#emailalert="admin@x.y.z"
#emailalertfreq=3600
#emailalertstatus=all
quiescent=yes

# Sample for an http virtual service
virtual=192.168.1.240:80
real=192.168.1.233:80 gate
real=192.168.1.234:80 gate
fallback=127.0.0.1:80 gate
service=http
request="helth.html"
receive="Ok"
virtualhost=192.168.1.240
scheduler=rr

Forums:

no arp 的问题,有点模糊了

看下面的文字:
To disable ARP for VIP at real servers, we just need to set arp_announce/arp_ignore sysctls at the interface connected to the VIP network. For example, real servers have eth0 connected to the VIP network with the VIP at interface lo, we will have the following commands.

echo 1 > /proc/sys/net/ipv4/conf/eth0/arp_ignore
echo 2 > /proc/sys/net/ipv4/conf/eth0/arp_announce

意思是如果在realserver有个VIP配在lo上,那么arp_announce/arp_ignore应该配在VIP_NET的那个网卡上。但是我从网上的很多文章上都是说配置lo上的

Forums:

页面

Subscribe to RSS - LVS集群
randomness