Re: sort of a load balancing question

2000-08-24 Thread Jeremy C. Reed

On Thu, 24 Aug 2000, Shao Zhang wrote:

   We are an isp here and we would like to set up two webservers
   that are completely tranparent(rsync daily).
 
   We will only be using one webserver to server all the pages, but
   if it goes down, we would like the second webserver to take over
   without any downtime.

I use a smiliar solution, but the two machines are not completely the
same. We rsync the websites (users and domains) and password files.

We run gated on the web server and on the back up webserver using OSPF
(Open Shortest Path Routing).

When ever the main web server comes up again, it becomes the real server.

FTP is not available on the back up web server.

This isn't the best solution, because CGIs that create files or use data
on the backup server may be different from the real server (because it
doesn't sync the other way).

(We are getting ready to move to using a external RAID box for the
website directories. This may be an additional idea.)

  Jeremy C. Reed

 BSD software, documentation, resources, news...
 http://bsd.reedmedia.net/


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




RE: sort of a load balancing question

2000-08-24 Thread Scott Thompson
We do that here. But the difference is it's not totally automated. If the
primary server goes down for whatever reason, our admin's pager will go off,
he lives 6 minutes from the office and 7 minutes from the backup server in
another building. Simply he goes and get's the backup server, restarts it
and at the lilo prompt he types 'clone' and we are back up and running.

Granted this puts us down for about 15 minutes, but it's there!

Scott Thompson
Programming  Server Admin
Internet Brokers Group
[EMAIL PROTECTED]
http://www.internetbrokers.ab.ca
Office: (403) 232-1032
Fax: (403) 265-2843


-Original Message-
From: Shao Zhang [mailto:[EMAIL PROTECTED] Behalf Of Shao
Zhang
Sent: Wednesday, August 23, 2000 7:30 PM
To: debian-isp@lists.debian.org
Subject: sort of a load balancing question


Hi,
This is not a really load balancing question, but similar sort
of thing.

We are an isp here and we would like to set up two webservers
that are completely tranparent(rsync daily).

We will only be using one webserver to server all the pages, but
if it goes down, we would like the second webserver to take over
without any downtime.

Is there any programs out there that does this?

Thanks.

Shao.

--

Shao Zhang - Running Debian 2.1  ___ _   _
Department of Communications/ __| |_  __ _ ___  |_  / |_  __ _ _ _  __ _
University of New South Wales   \__ \ ' \/ _` / _ \  / /| ' \/ _` | ' \/ _`
|
Sydney, Australia   |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__,
|
Email: [EMAIL PROTECTED]
|___/

_


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]




Re: sort of a load balancing question

2000-08-24 Thread Kevin


You could put a linux router infront of them with an ethernet
connection to each server and then another out to your main router.
Make a bash script to check that the primary is up, if its not have it
change the route to go out the other interface, which would be the
secondary.

-- 
Kevin - [EMAIL PROTECTED]



-- Original message --

 Hi,
 This is not a really load balancing question, but similar sort
 of thing.

 We are an isp here and we would like to set up two webservers
 that are completely tranparent(rsync daily).

 We will only be using one webserver to server all the pages, but
 if it goes down, we would like the second webserver to take over
 without any downtime.

 Is there any programs out there that does this?

 Thanks.

 Shao.





Re: sort of a load balancing question

2000-08-24 Thread Jeremy C. Reed
On Thu, 24 Aug 2000, Shao Zhang wrote:

   We are an isp here and we would like to set up two webservers
   that are completely tranparent(rsync daily).
 
   We will only be using one webserver to server all the pages, but
   if it goes down, we would like the second webserver to take over
   without any downtime.

I use a smiliar solution, but the two machines are not completely the
same. We rsync the websites (users and domains) and password files.

We run gated on the web server and on the back up webserver using OSPF
(Open Shortest Path Routing).

When ever the main web server comes up again, it becomes the real server.

FTP is not available on the back up web server.

This isn't the best solution, because CGIs that create files or use data
on the backup server may be different from the real server (because it
doesn't sync the other way).

(We are getting ready to move to using a external RAID box for the
website directories. This may be an additional idea.)

  Jeremy C. Reed

 BSD software, documentation, resources, news...
 http://bsd.reedmedia.net/




Re: sort of a load balancing question

2000-08-23 Thread Robert Davidson


Shao,

We are also a small ISP and do exactly that with one of our vital servers.

We used rsync for this.

Regards,
Robert Davidson.


On Thu, Aug 24, 2000 at 12:30:12PM +1000, Shao Zhang wrote:
 Hi,
   This is not a really load balancing question, but similar sort
   of thing.
 
   We are an isp here and we would like to set up two webservers
   that are completely tranparent(rsync daily).
 
   We will only be using one webserver to server all the pages, but
   if it goes down, we would like the second webserver to take over
   without any downtime.
 
   Is there any programs out there that does this?
 
   Thanks.
 
 Shao.
 
 -- 
 
 Shao Zhang - Running Debian 2.1  ___ _   _
 Department of Communications/ __| |_  __ _ ___  |_  / |_  __ _ _ _  __ _ 
 University of New South Wales   \__ \ ' \/ _` / _ \  / /| ' \/ _` | ' \/ _` |
 Sydney, Australia   |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, |
 Email: [EMAIL PROTECTED]  |___/ 
 _
 
 
 --  
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
 


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: sort of a load balancing question

2000-08-23 Thread Robert Davidson

Shao,

We are also a small ISP and do exactly that with one of our vital servers.

We used rsync for this.

Regards,
Robert Davidson.


On Thu, Aug 24, 2000 at 12:30:12PM +1000, Shao Zhang wrote:
 Hi,
   This is not a really load balancing question, but similar sort
   of thing.
 
   We are an isp here and we would like to set up two webservers
   that are completely tranparent(rsync daily).
 
   We will only be using one webserver to server all the pages, but
   if it goes down, we would like the second webserver to take over
   without any downtime.
 
   Is there any programs out there that does this?
 
   Thanks.
 
 Shao.
 
 -- 
 
 Shao Zhang - Running Debian 2.1  ___ _   _
 Department of Communications/ __| |_  __ _ ___  |_  / |_  __ _ _ _  __ _ 
 University of New South Wales   \__ \ ' \/ _` / _ \  / /| ' \/ _` | ' \/ _` |
 Sydney, Australia   |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, |
 Email: [EMAIL PROTECTED]  
 |___/ 
 _
 
 
 --  
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
 




Re: sort of a load balancing question

2000-08-23 Thread Luca Filipozzi
On Thu, Aug 24, 2000 at 12:30:12PM +1000, Shao Zhang wrote:
   Is there any programs out there that does this?

Take a look at:

http://www.linux-ha.org/
http://www.linuxvirtualserver.org/
http://ultramonkey.sourceforge.net/
http://www.eddieware.org/

-- 
Luca Filipozzi
[dpkg] We are the apt. Resistance is futile. You will be packaged.




Re: sort of a load balancing question

2000-08-23 Thread Shao Zhang
Hi,
Yes. But I would like to know a way to let the backup server
automatically take over when the primary web server is down.

Thanks.

Shao.

Robert Davidson [EMAIL PROTECTED] wrote:
 We are also a small ISP and do exactly that with one of our vital servers.
 We used rsync for this.

 
 Regards,
 Robert Davidson.
 
 
 On Thu, Aug 24, 2000 at 12:30:12PM +1000, Shao Zhang wrote:
  Hi,
  This is not a really load balancing question, but similar sort
  of thing.
  
  We are an isp here and we would like to set up two webservers
  that are completely tranparent(rsync daily).
  
  We will only be using one webserver to server all the pages, but
  if it goes down, we would like the second webserver to take over
  without any downtime.
  
  Is there any programs out there that does this?
  
  Thanks.
  
  Shao.
  
  -- 
  
  Shao Zhang - Running Debian 2.1  ___ _   _
  Department of Communications/ __| |_  __ _ ___  |_  / |_  __ _ _ _  __ 
  _ 
  University of New South Wales   \__ \ ' \/ _` / _ \  / /| ' \/ _` | ' \/ _` 
  |
  Sydney, Australia   |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, 
  |
  Email: [EMAIL PROTECTED]  
  |___/ 
  _
  
  
  --  
  To UNSUBSCRIBE, email to [EMAIL PROTECTED]
  with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
  
 
 
 --  
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
 

-- 

Shao Zhang - Running Debian 2.1  ___ _   _
Department of Communications/ __| |_  __ _ ___  |_  / |_  __ _ _ _  __ _ 
University of New South Wales   \__ \ ' \/ _` / _ \  / /| ' \/ _` | ' \/ _` |
Sydney, Australia   |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, |
Email: [EMAIL PROTECTED]  |___/ 
_




Re: sort of a load balancing question

2000-08-23 Thread Shao Zhang
Hi,

ridgey [EMAIL PROTECTED] wrote:
 you could put the primary name record on the primary webserver and have the
 www pointing to itself, then put the secondary name record on the secondary
 sever and have its www pointing to itself, so when the primary goes down,
 the secondary will kick in, it may take a little while to filter through but
 would be good for like over night or on a weekend. i dont know if this is a
 by the book way but its works for us.

This is an interesting idea. But there are some problems with this
approach.

1. need to reduct TTL to minimise the take over time
2. secondary named server is supposed to maintain exactly the same information 
as the primary name server
3. it will not work if only webserver died, but not the dns server.

Thanks.

Shao.
 
 Ridgey
 
  From: Shao Zhang [EMAIL PROTECTED]
  Date: Thu, 24 Aug 2000 12:30:12 +1000
  To: debian-isp@lists.debian.org
  Subject: sort of a load balancing question
  Resent-From: debian-isp@lists.debian.org
  Resent-Date: Thu, 24 Aug 2000 12:26:59 +1000
  
  Hi,
  This is not a really load balancing question, but similar sort
  of thing.
  
  We are an isp here and we would like to set up two webservers
  that are completely tranparent(rsync daily).
  
  We will only be using one webserver to server all the pages, but
  if it goes down, we would like the second webserver to take over
  without any downtime.
  
  Is there any programs out there that does this?
  
  Thanks.
  
  Shao.
  
  -- 
  
  Shao Zhang - Running Debian 2.1  ___ _   _
  Department of Communications/ __| |_  __ _ ___  |_  / |_  __ _ _ _  __ _
  University of New South Wales   \__ \ ' \/ _` / _ \  / /| ' \/ _` | ' \/ _` 
  |
  Sydney, Australia   |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, 
  |
  Email: [EMAIL PROTECTED]  
  |___/
  _
  
  
  --  
  To UNSUBSCRIBE, email to [EMAIL PROTECTED]
  with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
  
  
 
 

-- 

Shao Zhang - Running Debian 2.1  ___ _   _
Department of Communications/ __| |_  __ _ ___  |_  / |_  __ _ _ _  __ _ 
University of New South Wales   \__ \ ' \/ _` / _ \  / /| ' \/ _` | ' \/ _` |
Sydney, Australia   |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, |
Email: [EMAIL PROTECTED]  |___/ 
_