[NTLUG:Discuss] "Web site temporarily offline"
Leroy Tennison
leroy_tennison at prodigy.net
Mon Apr 20 03:20:39 CDT 2009
Chris Cox wrote:
> Daniel Hauck wrote:
>> I have my main web stuff on a VM and occasionally, I like to run backups
>> of the VM but it takes at least 20 minutes. During that down time, I
>> would like to have another machine detect when the server is down and
>> assume the server's IP address so that it can say "Web site down for
>> maintenance. Be back soon!"
>>
>> I imagine running a small VM that would run whatever processes needed.
>>
>> Anyone know any magic tricks to accomplish this?
>
> One way is via cluster failover techniques with a virtual ip.
> You can use heartbeat (usually a set of packages around that for many
> distros). When a service on one machine fails, a different box
> will answer for that service.
>
> The virtual IP belongs to the host that is working...
>
> So when the main host comes back, you fail the other so the
> one you want can take back over the virtual ip.
>
> 192.168.1.0/24 (network)
>
> 77 (virtual IP)
>
> /\
> / \
> 11 (vm) 12 (failover)
>
>
> Everyones uses 192.168.1.77... which starts off being
> used by 192.168.1.11... when the service fails there is
> switches over to 192.168.1.12... then when .11 comes back,
> you'll want to fail .12.
>
> Install heartbeat and read the docs... might have to do
> some extra work to make things truly automated.
>
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
Maybe another approach is to ask "Why am I backing up my Web server?"
Where I'm going with this is to put the changing data on a different box
(or VM) so that you can do whatever "box switching" (failover, whatever)
behind the scenes rather than have to fool with DNS and worry about
caching all over the Web.
More information about the Discuss
mailing list