Interesting logic problem with wackamole and multiple apache vhosts

"Spangler, Tim" <[email protected]> Thu, 20 Dec 2007 19:07:55 -0500
Newsgroups gmane.comp.apache.mod-wackamole.general
Message-ID <[email protected]>
This is a multi-part message in MIME format.


--===============1092954908==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C84365.8A2876C7"

This is a multi-part message in MIME format.


------_=_NextPart_001_01C84365.8A2876C7
Content-Type: text/plain;
 charset=us-ascii
Content-Transfer-Encoding: quoted-printable

All,=0D=0A =0D=0AI've run into an interesting problem with Apache running s=
everal vhosts=0D=0Aand wackmole that I can't seem to work out in my head, t=
hus I'm looking=0D=0Afor some advice from others that may have had a simila=
r issue=2E=0D=0A =0D=0AIn my scenario, each Apache vhost needs its own IP a=
ddress (they are all=0D=0Arunning SSL, thus the IP), and Wackamole is used =
as a failover solution=2E=0D=0AHow do you configure Wackamole and Apache to=
 handle multiple IP=0D=0Aaddresses without ever losing requests?=0D=0A =0D=
=0AHere are the scenarios I've thought of:=0D=0A =0D=0A1) Set Apache to bin=
d to 80 and 443 on all IPs=2E  Works fine if you're=0D=0Aonly using 1 vhost=
, but Apache cannot be configured in this manner for=0D=0Amultiple vhosts=
=2E=0D=0A =0D=0A2) Set both Apache instances to bind to the VIP, and start =
wackamole on=0D=0Athe failover system, then start Apache on the failover, t=
hen start=0D=0Awackamole on the primary (which moves the VIP to the primary=
), and=0D=0Afinally start Apache on the primary=2E  Works, but is somewhat =
clunky, and=0D=0Ayou cannot ever restart Apache on the failover system with=
out killing=0D=0Awackamole on the primary=2E=0D=0A =0D=0A3) Round robin DNS=
 between both systems with X VIPs, where X is twice=0D=0Athe number of virt=
ual hosts I need=2E  This works fine until one system=0D=0Adies -- at that =
point the VIPs move to server 2, but Apache is not=0D=0Alistening on those =
IPs on server 2, so every other request fails=2E=0D=0A =0D=0AAnyone have a =
clever idea to get this to work?=0D=0A =0D=0AThanks in advance,=0D=0A =0D=
=0A-Tim Spangler=0D=0A =0D=0A =0D=0A =0D=0A =0D=0A=0D=0A=0D=0A=0D=0A=0D=0A=
=0D=0A-----------------------------------------=0D=0AThis message and any a=
ttachments are intended only for the use of=0Athe addressee and may contain=
 information that is privileged and=0Aconfidential=2E If the reader of the =
message is not the intended=0Arecipient or an authorized representative of =
the intended=0Arecipient, you are hereby notified that any dissemination of=
 this=0Acommunication is strictly prohibited=2E If you have received this=
=0Acommunication in error, notify the sender immediately by return=0Aemail =
and delete the message and any attachments from your system=2E
------_=_NextPart_001_01C84365.8A2876C7
Content-Type: text/html;
 charset=us-ascii
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4=2E0 Transitional//EN">=0D=0A<HTML=
><HEAD>=0D=0A<META http-equiv=3DContent-Type content=3D"text/html; charset=
=3Dus-ascii">=0D=0A<META content=3D"MSHTML 6=2E00=2E6000=2E16587" name=3DGE=
NERATOR></HEAD>=0D=0A<BODY>=0D=0A<DIV><SPAN class=3D070591723-20122007></SP=
AN><FONT face=3DArial><FONT =0D=0Acolor=3D#0000ff><FONT size=3D2>A<SPAN =0D=
=0Aclass=3D070591723-20122007>ll,</SPAN></FONT></FONT></FONT></DIV>=0D=0A<D=
IV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN =0D=0Aclas=
s=3D070591723-20122007></SPAN></FONT></FONT></FONT>&nbsp;</DIV>=0D=0A<DIV><=
FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN =0D=0Aclass=3D=
070591723-20122007>I've run into an interesting&nbsp;problem with =0D=0AApa=
che&nbsp;running several vhosts and wackmole that I can't seem&nbsp;to work=
 =0D=0Aout in my head, thus I'm looking for some&nbsp;advice from others th=
at may =0D=0Ahave&nbsp;had a similar issue=2E</SPAN></FONT></FONT></FONT></=
DIV>=0D=0A<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPA=
N =0D=0Aclass=3D070591723-20122007></SPAN></FONT></FONT></FONT>&nbsp;</DIV>=
=0D=0A<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN =
=0D=0Aclass=3D070591723-20122007>In my scenario, each Apache vhost needs it=
s own IP =0D=0Aaddress (they are all running SSL, thus the IP), and Wackamo=
le is used as a =0D=0Afailover solution=2E&nbsp; How do you configure Wacka=
mole and Apache to handle =0D=0Amultiple IP addresses without ever losing =
=0D=0Arequests?</SPAN></FONT></FONT></FONT></DIV>=0D=0A<DIV><FONT face=3DAr=
ial><FONT color=3D#0000ff><FONT size=3D2><SPAN =0D=0Aclass=3D070591723-2012=
2007></SPAN></FONT></FONT></FONT>&nbsp;</DIV>=0D=0A<DIV><FONT face=3DArial>=
<FONT color=3D#0000ff><FONT size=3D2><SPAN =0D=0Aclass=3D070591723-20122007=
>Here are the scenarios I've thought =0D=0Aof:</SPAN></FONT></FONT></FONT><=
/DIV>=0D=0A<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SP=
AN =0D=0Aclass=3D070591723-20122007></SPAN></FONT></FONT></FONT>&nbsp;</DIV=
>=0D=0A<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN =
=0D=0Aclass=3D070591723-20122007>1) Set Apache to bind to 80 and 443 on all=
 IPs=2E&nbsp; =0D=0AWorks fine if you're only using 1 vhost, but Apache can=
not be configured in this =0D=0Amanner for multiple vhosts=2E</SPAN></FONT>=
</FONT></FONT></DIV>=0D=0A<DIV><FONT face=3DArial><FONT color=3D#0000ff><FO=
NT size=3D2><SPAN =0D=0Aclass=3D070591723-20122007></SPAN></FONT></FONT></F=
ONT>&nbsp;</DIV>=0D=0A<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT s=
ize=3D2><SPAN =0D=0Aclass=3D070591723-20122007>2) Set both Apache instances=
 to bind to the VIP, and =0D=0Astart&nbsp;wackamole on the failover system,=
 then start Apache on the failover, =0D=0Athen start wackamole on the prima=
ry (which moves the VIP to the primary), and =0D=0Afinally start Apache on =
the primary=2E&nbsp; Works, but is somewhat clunky, and =0D=0Ayou cannot ev=
er restart Apache on the failover system without killing wackamole =0D=0Aon=
 the primary=2E</SPAN></FONT></FONT></FONT></DIV>=0D=0A<DIV><FONT face=3DAr=
ial><FONT color=3D#0000ff><FONT size=3D2><SPAN =0D=0Aclass=3D070591723-2012=
2007></SPAN></FONT></FONT></FONT>&nbsp;</DIV>=0D=0A<DIV><FONT face=3DArial>=
<FONT color=3D#0000ff><FONT size=3D2><SPAN =0D=0Aclass=3D070591723-20122007=
>3) Round robin DNS between both systems with X VIPs, =0D=0Awhere X is twic=
e the number of virtual hosts I need=2E&nbsp; This works fine until =0D=0Ao=
ne system dies -- at that point the VIPs move to server 2, but Apache is no=
t =0D=0Alistening on those IPs on server 2, so every other request =0D=0Afa=
ils=2E</SPAN></FONT></FONT></FONT></DIV>=0D=0A<DIV><FONT face=3DArial><FONT=
 color=3D#0000ff><FONT size=3D2><SPAN =0D=0Aclass=3D070591723-20122007></SP=
AN></FONT></FONT></FONT>&nbsp;</DIV>=0D=0A<DIV><FONT face=3DArial><FONT col=
or=3D#0000ff><FONT size=3D2><SPAN =0D=0Aclass=3D070591723-20122007>Anyone h=
ave a clever idea to get this to =0D=0Awork?</SPAN></FONT></FONT></FONT></D=
IV>=0D=0A<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN=
 =0D=0Aclass=3D070591723-20122007></SPAN></FONT></FONT></FONT>&nbsp;</DIV>=
=0D=0A<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN =
=0D=0Aclass=3D070591723-20122007>Thanks in advance,</SPAN></FONT></FONT></F=
ONT></DIV>=0D=0A<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D=
2><SPAN =0D=0Aclass=3D070591723-20122007></SPAN></FONT></FONT></FONT>&nbsp;=
</DIV>=0D=0A<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><S=
PAN =0D=0Aclass=3D070591723-20122007>-Tim Spangler</SPAN></FONT></FONT></FO=
NT></DIV>=0D=0A<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2=
><SPAN =0D=0Aclass=3D070591723-20122007></SPAN></FONT></FONT></FONT>&nbsp;<=
/DIV>=0D=0A<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SP=
AN =0D=0Aclass=3D070591723-20122007></SPAN></FONT></FONT></FONT>&nbsp;</DIV=
>=0D=0A<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN =
=0D=0Aclass=3D070591723-20122007></SPAN></FONT></FONT></FONT>&nbsp;</DIV>=
=0D=0A<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN =
=0D=0Aclass=3D070591723-20122007></SPAN></FONT></FONT></FONT>&nbsp;</DIV>=
=0D=0A<DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT><BR></DIV></B=
ODY></HTML>=0D=0A=0D=0A<HTML><BODY><P><hr size=3D1></P>=0D=0A<P><STRONG>=0D=
=0AThis message and any attachments are intended only for the use of the ad=
dressee and may contain information that is privileged and confidential=2E =
If the reader of the message is not the intended recipient or an authorized=
 representative of the intended recipient, you are hereby notified that any=
 dissemination of this communication is strictly prohibited=2E If you have =
received this communication in error, notify the sender immediately by retu=
rn email and delete the message and any attachments from your system=2E=0D=
=0A</STRONG></P></BODY></HTML>
------_=_NextPart_001_01C84365.8A2876C7--
--===============1092954908==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
wackamole-users mailing list
[email protected]
http://lists.backhand.org/mailman/listinfo/wackamole-users
--===============1092954908==--