I don't think you need LVS for that. Just look at heartbeat at:
www.linux-ha.org
LVS can use heartbeat to reduce single points of failure, but LVS's strong
point is not just the high availability, but also the high perfomance gained
by pooling servers under one virtual IP.
It sounds like you are just looking for high availability.
Heartbeat allows you to run scripts if a node is detected as being down so
you probably wouldn't need cron jobs unless I misread what you were going to
use it for. The linux-ha folks are a good community like any linux
community, but I suggest you read some of the documentation before you ask
any questions. They always respect somebody who has tried and failed more.
To answer your question, your bosses request doesn't sound unreasonable and
on a scale of difficulty of some peoples setup this seems relatively easy.
Guy Waugh writes:
Hi there,
My boss has just asked me whether it would be possible to set up an LVS
system as follows:
* Two directors (failing over to each other) with a web server on each
director;
* Only the web server on the active director is running;
* The active web server (active director) serves a proxy autoconfig script
only, and no other pages.
The idea would be to provide some redundancy to our proxy autoconfig
service. I guess I'd start up the web server on each director when that
director becomes the active director, and cron a job every minute to shut
the web server down if the director wasn't the active director. The
floating IP would be the advertised (DNSed) proxy autoconfig service. I
guess I'd cron iptables rule additions/deletions similar to
starting/stopping the web servers.
Anyone see any problems/pitfalls, or have any ideas, about this?
Thanks in advance,
Guy.
--
Guy Waugh
Unix Team
Information Technology & Telecommunication Services
Southern Cross University
P.O.Box 157
Lismore NSW 2480
Ph: 61 2 6620 3196
Fax: 61 2 6620 3033
www.scu.edu.au/admin/it
--
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users
|