我的资源文件如下配置(ipvsadm.sh,这个文件在/etc/ha.d/resource.d/ 目录下,启动方式支持 start|stop)
[root@redhat5 log]# tail /etc/ha.d/haresources
#
#node1 10.0.0.170 Filesystem::/dev/sda1::/data1::ext2
#
# Regarding the node-names in this file:
#
# They must match the names of the nodes listed in ha.cf, which in turn
# must match the `uname -n` of some node in the cluster. So they aren't
# virtual in any sense of the word.
#
redhat5 192.168.3.150/24/eth0:150 ipvsadm.sh
Submitted by tianlongshenzu on 周三, 2007-08-22 01:45
heartbeat的日志里一直报这个错误:
heartbeat[4004]: 2007/08/22_09:39:26 info: Gmain_timeout_dispatch: started at 557437928 should have started at 557293220
heartbeat[4004]: 2007/08/22_09:39:27 WARN: Gmain_timeout_dispatch: Dispatch function for retransmit request was delayed 1447060 ms before being called (GSource: 0x15b89798)
而且cpu已经占用了很高,我的ha.cf是这样的:
debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility local0
keepalive 2
deadtime 30
warntime 10
initdead 120
udpport 694
baud 19200
ucast eth1 192.168.1.2
看了一下KTCPVS的资料,提到了以下四种配置方法:
Content-based scheduler for simple HTTP service
Content-based scheduler for persistent HTTP service
Content-based scheduler for cookie-based HTTP service
Content-based scheduler for hash-based HTTP service
但都是基于URI来进行调度的。