集群技术

集群技术

请大家帮忙两台主机的双机热备问题

现在我的情况是这样的.我有两台linux as 主机,想做个邮件服务器,www的双机热备,采用软件镜像的方式.就是说,服务器A(主服)down机了.服务器B(备服)接替A的工作.请问这个如何实现,采用什么软件.
两台主机之间的数据如何同步?可以采用什么方式?谢谢大家.

Forums:

帮忙症断一下heartbeat的问题

症状:
主备两台机器开始都会等待2两分钟,之后会认为对方当了,然后激活自己。

主用机的配置
[root@centos100 ha.d]# grep -v -E '^#|^$' ha.cf
logfile /var/log/ha-log
logfacility local0
keepalive 2
deadtime 30
warntime 10
initdead 120
udpport 694
bcast eth0 # Linux
mcast eth0 225.0.0.1 694 1 0
ucast eth0 192.168.110.8
auto_failback on
node centos100
node acer
ping_group group1 192.168.110.22 192.168.110.2
respawn hacluster /usr/lib/heartbeat/ipfail
apiauth ipfail gid=haclient uid=hacluster

[root@centos100 ha.d]# grep -v -E '^#|^$' haresources

Forums:

lvs DR配置http负载均衡的一些问题

使用lvs的DR配置apache的http负载均衡成功,有两台real server,ip分别是2,3, 如果将2这台机器重启的话,访问就会一直指向2这台机器,请问这是为什么啊?如果关掉2的apache服务的话,就无法通过虚拟IP访问web服务了,请问哪里设置有问题吗?

Forums:

章博士,还有各们大侠,您们好!求testlvs测试程序.我是菜鸟,自己不会写~~

请问我到哪可以获得您在<<可伸缩性服务的设计与实现>>中--性能测试一节所说的testlvs程序,我想测试一下我的集群系统的性能.

Forums:

各位大侠,为什么要255.255.255.255啊~~

3.10. Why netmask=/32 for the VIP in LVS-DR?
Horms 29 Oct 2003
If you are using LVS-DR then the packets that arrive on the real servers have
the destination IP address set to the VIP. So the real servers need some way of
accepting this traffic as local. One way is to add an interface on the loopback
device and hide it so it won’t answer ARP requests.
The netmask has to be 255.255.255.255 because the loopback interface will
answer packets for all hosts on any configured interface. So 192.168.1.110
with netmask of 255.255.255.0 will cause the machine to accept packets for all
addresses in the range 192.168.1.0 - 192.168.1.255, which is probably not what

Forums:

LVS TUN 不能实现,问题出在哪里?

VIP:192.168.5.79
RS1:192.168.5.77
RS2:192.168.5.78
RS3:192.168.200.2

lvs# ifconfig eth1:0 192.168.5.79 netmask 255.255.255.255 192.168.5.79 up
lvs# echo 1 > /proc/sys/net/ipv4/ip_forward
lvs# /sbin/ipvsadm -C
lvs# vi /etc/ipvsadm.rules
/sbin/ipvsadm -A -t 192.168.5.79:80 -s rr
/sbin/ipvsadm -a -t 192.168.5.79:80 -r 192.168.5.77:80 -i
/sbin/ipvsadm -a -t 192.168.5.79:80 -r 192.168.5.78:80 -i
/sbin/ipvsadm -a -t 192.168.5.79:80 -r 192.168.200.2:80 -i

LVS上tun配置:
(172.16.0.0/24 为tun内封装的内网,LVS:172.16.0.1,RS1:172.16.0.2,RS2:172.16.0.3,172.16.0.4):

lvs# ip tunnel add tun0 mode ipip remote 192.168.5.77 local 192.168.5.79 dev eth1

Forums:

请教如何在redhat as3中使用LVS

我有两台redhat as3,打算一部用来做directory(网卡ip是17.24.18.21),一部做realserver(172.24.18.22),VIP是172.24.18.23,根据资料说rhas3不用打补丁,所以我就把这一步省了,大家帮我看看我的操作有没有错:
directory:
修改内核运行参数,即修改/etc/sysctl.conf文件的内容如下:
net.ipv4.ip_forward = 0
net.ipv4.conf.all.send_redirects = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.eth0.send_redirects = 1

然后执行下面的命令是对内核修改的参数立即生效:
sysctl -p

配置VIP地址:
/sbin/ifconfig eth0:0 172.24.18.23 broadcast 172.24.18.23 netmask 255.255.255.255 up

Forums:

jabber IM即时通讯集群问题

请问下:

我现在用的是jabber即时通讯server,准备realserver上部署多个模块,每个模块负责处理客户的请求连接,每个连接是tcp长连接方式,直至用户下线(类试QQ),每个模块提供相同的服务,现在想采用lvs DR方式,在realserver上的模块作负载均衡,请问下,lvs适合这种服务吗?适合的话,应该采取哪种方式,lvs DR可以吗?

Forums:

Linux2.6.9-22.EL LVS/DR 问题

Directorserver配置脚本如下:
#!/bin/sh

#Start LVS of Directorserver, John Yang
VIP=192.168.0.100 (virtual ip)

RIP1=192.168.0.197 (realserver)
RIP2=192.168.0.190

GW=192.168.0.1
. /etc/rc.d/init.d/functions
case "$1" in
start)

echo " start LVS of DirectorServer "
echo "0" > /proc/sys/net/ipv4/ip_forward

echo "1" > /proc/sys/net/ipv4/conf/all/send_redirects
echo "1" > /proc/sys/net/ipv4/conf/default/send_redirects
echo "1" > /proc/sys/net/ipv4/conf/eth0/send_redirects

# Set the Virtual IP Address

Forums:

ipvsadm 端口对应问题

ipvsadm 中虚拟服务器的端口是不是一定要与真实服务器的端口一样才行,否则就ipvsadm就不工作??

如果我用下面的时虚拟服务器就不行了,输入http://192.168.2.190或http://192.168.2.190:8080都不能访问
ipvsadm -A -t 192.168.2.190:80 -s wlc -p 5
ipvsadm -a -t 192.168.2.190:80 -r 192.168.2.186:8080 -g

当我修改回来来,输入http://192.168.2.190:8080就可以了
ipvsadm -A -t 192.168.2.190:8080 -s wlc -p 5
ipvsadm -a -t 192.168.2.190:8080 -r 192.168.2.186:8080 -g

是不是vip:8080 只能对应 rip:8080,如果端口不一致就不行???

Forums:

页面

Subscribe to RSS - 集群技术
randomness