
Instalacion de paquetes
debian-ldirector
aptitude install ldirectord-2 heartbeat
debian-rs y debian-rs2
aptitude install apache2
debian-ldirector
Configuracion de red
auto eth0
iface eth0 inet static
address 192.168.1.35
netmask 255.255.255.0
gateway 192.168.1.1
auto eth0:0
iface eth0:0 inet static
address 192.168.1.34
netmask 255.255.255.0
debian-rs
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.36
netmask 255.255.255.0
gateway 192.168.1.1
auto lo:0
iface lo:0 inet static
address 192.168.1.34
netmask 255.255.255.255
debian-rs2
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.37
netmask 255.255.255.0
gateway 192.168.1.1
auto lo:0
iface lo:0 inet static
address 192.168.1.34
netmask 255.255.255.255
Modificando parametros del kernel para evitar el problema arp
debian-ldirector
#vi /etc/sysctl.conf
net.ipv4.ip_forward = 1
#sysctl -p
debian-rs y debian-rs2
#vi /etc/sysctl.conf
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.eth0.arp_ignore = 1
net.ipv4.conf.all.arp_announce = 2
net.ipv4.conf.eth0.arp_announce = 2
#sysctl -p
Configuracion de ldirectord
vi /etc/ha.d/ldirectord.cf
checktimeout=10
checkinterval=2
autoreload=no
logfile="/var/log/ldirectorlog.log"
quiescent=yes
# Virtual Server for HTTP
virtual=192.168.1.34:80
fallback=127.0.0.1:80
real=192.168.1.36:80 gate
real=192.168.1.37:80 gate
service=http
request="test.html"
receive="funciona"
scheduler=rr
protocol=tcp
checktype=negotiate
Buenísimo. Encontre mucha información, pero no encontré ningun ejemplo en concreto. Con lo poco que comprendi de otros lugar mas tu ejemplo, creo que me será de muchísima utilidad. avilte.
ResponderBorrar