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

Riccardo Tacconi rtacconi at gmail.com
Tue Apr 16 04:09:48 PDT 2013


You could have 3 servers with Galera replication ( it needs 3 servers ).
Each server can have your app running (web/app server) and a haproxy which
will balance the requests to your mysql cluster. There is not singole point
of failure, although network issues could affect the mysql replication. You
could move one node to another datacenter and having a service like Zerigo
DNS to balance the requests to the available servers and depending where
the request is coming (DNS geolocation).


On 16 April 2013 11:50, 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
>



-- 
Riccardo Tacconi
Ruby on Rails and PHP development - System Administration
VIRTUELOGIC LIMITED <http://www.virtuelogic.net/>

http://github.com/rtacconi
http://riccardotacconi.blogspot.com
http://twitter.com/rtacconi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20130416/0748537c/attachment-0003.html>


More information about the Chat mailing list