Re: Redundent Debian linux web server

From: <chris_at_no.spam.please>
Date: Wed Jul 26 2006 - 17:15:41 CST

Dick,

I gather you could do a round robin DNS as suggested. You could also look at
doing a heartbeat server style server setup. Although, you'll probably still
have to do some sort replication of your DB to keep things current. The
problem I ran into is, if the Primary server is replicating to the secondary
server, does the Secondary server replicate back to the Primary server? And,
what happens if data is written to the DB on the Primary and Secondary at the
same time? I'm not sure if MySQL replication can handle that.. if someone
knows exactly how that would work, please do tell.

The scenario I had looked at for my client was setting up 1 file server, 1
database server, and 3 or 4 single hard drive machines running apache web
server. (total 5-6 servers, the first 2 in RAID5/6 configuration, the 3-4 in
RAID0). I was then thinking about using a load-balance appliance, or round
robin DNS. My clients site is running about 30,000+ unique sessions per day,
the entire site is MySQL and ColdFusion MX 7.

My client opted out on that due to the cost, so we ended up going with
an hourly
rsync, and MySQL replication. The second server just acting as a
fail-over only
(not really a load balance solution, more of a primary and secondary.

If a problem happens on the primary, I have a script (monitoring the site from
the Secondary) that re-writes the DNS files and restarts Bind
"auto-failing" to
the secondary server (with a 30 second TTL).

Cheers,

Chris

Quoting Dick Groot <dick.groot@gmail.com>:

> Hello everyone.
>
> I need a little help. I am wandering outside my comfort zone here.
> We are trying to set up a debian linux web server with a second
> redundant server as backup.
>
> It is going to be a mysql database driven php web site. <not porn>
>
> :-)
>
> any advice would be greatly accepted.
>
> thanks
> Dick
>
> --
> The significant problems we face cannot be solved by the same level of
> thinking that created them.
>
> --
> "Well, there's SPAM, egg, sausage, and SPAM. That's not got MUCH
> SPAM in it."
>
> To unsubscribe, send a message with the word "unsubscribe" (without the
> quotes) in the body to linux-request@slg.org
> Archives are at http://list.slg.org/
>
>
Received on Wed Jul 26 17:34:30 2006

This archive was generated by hypermail 2.1.8 : Fri Sep 08 2006 - 23:26:38 CST