All,
I've run into an interesting problem with Apache running several vhosts
and wackmole that I can't seem to work out in my head, thus I'm looking
for some advice from others that may have had a similar issue.
In my scenario, each Apache vhost needs its own IP address (they are all
running SSL, thus the IP), and Wackamole is used as a failover solution.
How do you configure Wackamole and Apache to handle multiple IP
addresses without ever losing requests?
Here are the scenarios I've thought of:
1) Set Apache to bind to 80 and 443 on all IPs. Works fine if you're
only using 1 vhost, but Apache cannot be configured in this manner for
multiple vhosts.
2) Set both Apache instances to bind to the VIP, and start wackamole on
the failover system, then start Apache on the failover, then start
wackamole on the primary (which moves the VIP to the primary), and
finally start Apache on the primary. Works, but is somewhat clunky, and
you cannot ever restart Apache on the failover system without killing
wackamole on the primary.
3) Round robin DNS between both systems with X VIPs, where X is twice
the number of virtual hosts I need. This works fine until one system
dies -- at that point the VIPs move to server 2, but Apache is not
listening on those IPs on server 2, so every other request fails.
Anyone have a clever idea to get this to work?
Thanks in advance,
-Tim Spangler
-----------------------------------------
This message and any attachments are intended only for the use of
the addressee and may contain information that is privileged and
confidential. 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. If you have received this
communication in error, notify the sender immediately by return
email and delete the message and any attachments from your system.
I've run into an interesting problem with Apache running several vhosts
and wackmole that I can't seem to work out in my head, thus I'm looking
for some advice from others that may have had a similar issue.
In my scenario, each Apache vhost needs its own IP address (they are all
running SSL, thus the IP), and Wackamole is used as a failover solution.
How do you configure Wackamole and Apache to handle multiple IP
addresses without ever losing requests?
Here are the scenarios I've thought of:
1) Set Apache to bind to 80 and 443 on all IPs. Works fine if you're
only using 1 vhost, but Apache cannot be configured in this manner for
multiple vhosts.
2) Set both Apache instances to bind to the VIP, and start wackamole on
the failover system, then start Apache on the failover, then start
wackamole on the primary (which moves the VIP to the primary), and
finally start Apache on the primary. Works, but is somewhat clunky, and
you cannot ever restart Apache on the failover system without killing
wackamole on the primary.
3) Round robin DNS between both systems with X VIPs, where X is twice
the number of virtual hosts I need. This works fine until one system
dies -- at that point the VIPs move to server 2, but Apache is not
listening on those IPs on server 2, so every other request fails.
Anyone have a clever idea to get this to work?
Thanks in advance,
-Tim Spangler
-----------------------------------------
This message and any attachments are intended only for the use of
the addressee and may contain information that is privileged and
confidential. 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. If you have received this
communication in error, notify the sender immediately by return
email and delete the message and any attachments from your system.