我的资源文件如下配置(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
看了一下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来进行调度的。