[LRUG] What's the best way to go from 1 server to 2?

Sam Barton sam at arenaflowers.com
Tue Apr 16 04:07:07 PDT 2013


Hey Andy

Do you want to use server 2 as back up or as a second server to serve
multiple requests to the same db? I'm guessing back up? We use multiple
instances on AWS with RDS which does replication.

The tricky part is managing write access to the DB from two or more
sources, sessions with order IDs etc < this obviously is entirely dependant
on your app.

More intel!

Cheers
Sam.




On Tue, Apr 16, 2013 at 11:50 AM, Andrew Stewart
<boss at airbladesoftware.com>wrote:

> Good afternoon El Rug,
>
> What's the best way to increase from one server to two?
>
> Currently I have everything for my webapp – code, database, background
> jobs, etc – on one server.  Performance is fine but it's a single point of
> failure (see this morning's email thread).  Off the top of my head I'm
> thinking:
>
> - Use a different host in a different city from my current server.
> - Install same operating system as current server and set up identically
> via Chef/whatever.
> - Deploy all code changes to both servers with Capistrano but have second
> server serving Rails maintenance page (just in case anybody finds it).
> - Ideally set up live (mysql) replication...somehow.
> - If/when first server croaks, manually fail over to second server via
> changing DNS.
>
> I'm sure it's more complicated than that, particularly the switching from
> one server to the other (and back).  Does anybody have any tips?
>
> Thanks again,
>
> Andy Stewart
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20130416/9313f1a2/attachment-0003.html>


More information about the Chat mailing list