[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:53125] LVSとkeepalivedで不可分散



#help

 

$B!H$U$k$?!I?=$7$^$9!#=i$a$F$NEj9F$G$9!#4V0c$$!"@eB-$i$:$G$"$l$P$*5v$7$/$@$5$$!#(B

 

$BFsBf$N%Q%=%3%s$rJBNs$K7R$.(BLVS + Keepalived$B$r;H$C$FIT2DJ,;6$r;n$_$F$$$^$9!#(B

 

2$BPublic IP address$B$r(B1$B$D;HMQ$G$-$k7@Ls$HDL>o$N%@%$%J%_%C%/%"%I%l%9$N9=@.$G$9!#(B

 

Inter Net

$B",(B

ROOTER-1$B!!(B192.168.1.2$B!!!!"*(BROOTER-2$B!!(B192.168.0.1/24$B!!"*!!(B192.168.0.2 $B!J(Bmy PC$B!K(B

123.123.123.33$B!!(B(publicIP)

$B"-(B

Hub

$B"-(B

192.168.1.21 (Real Server)$B!!(B+$B!!(B192.168.1.22 (Slave Server)

 

$BEj9F$O(B192.168.0.2$B$N(Bmy PC$B$+$i$G$9!#(B

 

Real Server

$B$N@_Dj$O(B

#ifconfig

eth0$B!!(Binet addr:192.168.2.22 Bcast:192.168.2.255 Mask:255.255.255.255

lo$B!!(Binet addr:127.0.0.1 Mask:255.0.0.0

ppp0$B!!(Binet addr:123.123.123.33 P-t-P:124.156.69.36 Mask:255.255.255.255

 

OS$B$O(BEtch (or Lenny?)  2.6.26.2.686

# aptitude install apache2

# aptitude install ipvsadm

# aptitude install keepalived

# aptitude install iptables

# aptitude install iproute

$B$G(BReal$B$H(BSlave$B$N%5!<%P$K%$%s%9%H!<%k$7$F$$$^$9!#(B

 

http://gcharriere.com/blog/?tag=lvs-dr

$B>e5-%&%'%V$r;2>H$7$FIT2DJ,;6$r;n$7$F$$$^$9!#(B

192.168.0.2$B$N%Q%=%3%s!J:#Ej9F$K;HMQ$7$F$$$k%Q%=%3%s!K$r;H$$(B

Virtual Address (192.168.1.100)

$B$rF~NO$9$k$HFsBf$N%Q%=%3%s$K>e

 

$B$3$N>uBV$G2$B$D=P$F$-$F$*$j$^$9!#(B

 

$B#1!K(B$B>e5-$N%Q%=%3%s$K;d$N%I%a%$%sL>$rF~NO$9$k$H%j%"%k%5!<%P$N(Bhtml(working)$B$OI=<($5$l$k$,!"%9%l!<%V%5!<%P$KIT2DJ,;6$5$l$J$$!#(B

$B#2!K(B$B30It$N%$%s%?%M%C%H$+$i;d$N%I%a%$%sL>$rF~NO$9$k$H!"%j%"%k%5!<%P$N(Bhtml$B!J(Bworking$B!K$G$9$iI=<($5$l$J$$!#(B

 

$B$3$NIT2DJ,;6$re

 

$B>0!"%9%l!<%V%5!<%P$N(Bhtml$B$O(Bworks$B$H$7$F$I$A$i$N%Q%=%3%s$K7R$,$C$F$$$k$N$+2r$+$k$h$&$K$7$F$$$^$9!#(B