环境:
LVS Director:
VIP: 192.168.100.1:80 for HTTP集群
VIP: 192.168.100.1:3306 for Mysql集群
节点1:lvsdirector, IP地址是192.168.100.20 (该节点作为master用)
节点2:sqlnode1,IP地址是192.168.100.30 (该节点作为backup节点,也作为SQL Node用,不要被节点名字疑惑)
Real Server:
Real Server 1: testnode, IP地址是192.168.100.10 (该节点同时运行HTTP和Mysql服务)
章博士:你好!我建立了一个LVS/DR方式的FTP集群,基本配置为一台LB调度器,后台五台真实服务器,真实服务器下连接的为NFS文件系统存储,存储中有10000个文件。操作系统都为SUSE 9(内核2.6.5).调度器的调度脚本为:
# Stopping the ip_forward for the secure reason,if you need ip_forward ,you can
# ENABLE it,1 for ENABLE ,0 for DISABLE
echo 0 > /proc/sys/net/ipv4/ip_forward
# Because in the LVS/DR, direcotr is not a gw for realserver ,so we use icmp
# to redirects on, 1 for on ,0 for off
echo "1" > /proc/sys/net/ipv4/conf/all/send_redirects