标签归档:ldirectord

Setup Linux loadbalancer with LVS, ldirectord and heartbeat

As my last post, I had built a more healthy load balancer. But it is still not practical. Because if the linux director fails, the system will not work. The high availability should be considered. In this post, I list my steps to implement HA function.

I added another machine to the system. The environment of my lab is as below.

ha1: eth0: 192.168.26.201 eth1: 192.168.26.221(heartbeat)
ha2: eth0: 192.168.26.202 eth1: 192.168.26.222(heartbeat)
rs1: eth0: 192.168.26.211
rs2: eth0: 192.168.26.212
VIP: 192.168.26.200
gateway: 192.168.26.1  继续阅读

LVS+Heartbeat+Ldirectord(RHEL5)

一、环境

我是用的vamware安装了两个RHEL5,默认安装了HTTP的服务。每个系统配置了两块类型为NAT的网卡。
Name                         ETH0                    ETH1             virtual IP
node1.hrwang.com          192.168.146.131         10.0.0.1         192.168.146.110
cluster.hrwang.com        192.168.146.132         10.0.0.2         192.168.146.110

关于ETH1网卡如何更改IP地址,可以编辑/etc/sysconfig/network-scripts/ifcfg-eth1文件,例如更改node1的eth1地址:
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=static
HWADDR=00:0c:29:8e:1d:eb
IPADDR=10.0.0.1
NETMASK=255.0.0.0 继续阅读

LVS Heartbeat Ldirectord配置实现

LVS Heartbeat Ldirectord在RedhatAS4.2上的实现
环境描述:
本文在配置LVS时使用三台linux,一台做Directorserver (192.168.0.25),两台做realserver(192.168.0.127
192.168.0.12,在配置lvs+heartbeat时又添加了一台(192.168.0.126)做为备份主节点,虚拟VIP:
192.168.0.100
软件列表:
ipvsadm-1.24.tar.gz
libnet.tar 下载地址:http://www.packetfactory.net/libnet/ 稳定版本是:1.1.2.1
e2fsprogs 可以用rpm 安装光盘
heartbeat-2.0.2.tar.gz
2.6内核已经集成IPVS内核补订了,所以不再需要重新编译内核.
配置此集群分以下几种情况:
(1)、配置基于DR模式Lvs集群
(2)、配置基于隧道模式Lvs集群
(3)、配置基于高可用Lvs+heartbeat
(4)、此种配置方式可以加强LVS的主节点的高安全性前提下(主节点简称DR,备份主节点DRbak),考虑充分利用资源可以将DRbak做为realserver 继续阅读

Heartbeat + LVS + ldirectord构建可伸缩网络服务

网络环境:

机器数量:2
操作系统:Centos 5.0,Centos 5.2
机器名:centos50,centos52
机器IP:
Centos 5.0: 10.2.20.15
Centos 5.2: 10.2.20.88
虚拟IP: 10.2.20.17 继续阅读