[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] 2 Raq3i's



Keith <keith@xxxxxxxxx> writes:

> I have gotten information on how to setup rsync so that two machines
> sitting in two different colocations will be mirrored.  Is there a way to load balance

Hmm, how are they interconnected?

A simple DNS scheme _could_ be enough for your system (and it may not
be). Just enter more than one IP-address for your domain, and it will
rotate between the two server. Remember to set a quite low TTL.

> between the two machines?  I would I set that up?  How can I set it up so if machine1 fails
> there will be no loss of service because machine2 will take over.  

The cheap solution:

        Keep a low TTL and be fast to remove the ip-adress of the
        malfunctioning server when it goes down.

The semi-cheap solution:

        Does the same as the cheap solution, but automates it.

The "good" solution:

        Normally requires the two servers to be located the same
        place, or have a good redundant connections to each other.


-- 
Jens Kristian Søgaard,
jk@xxxxxxxxxxxx -- http://www.jksoegaard.dk/
Søger du noget? -- http://www.google.com/
echo|perl -ple'$_+=4E-6*!int rand()**2+rand()**2while$i++-1E6'