# Inexpensive ways to make a rails application highly availabl

**URL:** <https://www.ruby-forum.com/t/inexpensive-ways-to-make-a-rails-application-highly-availabl/53482>\
**Category:** Rails\
**Created:** [February 7, 2006, 9:38am UTC](https://www.ruby-forum.com/t/inexpensive-ways-to-make-a-rails-application-highly-availabl/53482 "2006-02-07T09:38:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aseldo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@aseldo](https://www.ruby-forum.com/u/aseldo)\
**Post date:** [February 7, 2006, 9:38am UTC](https://www.ruby-forum.com/t/inexpensive-ways-to-make-a-rails-application-highly-availabl/53482/1 "2006-02-07T09:38:48Z")

</div>

I’m interested in making a low volume rails application very available.  
This  
means that I would like to have  
an alternate server for those times when the primary server is  
unavailable  
for whatever reason.

Virtual private servers are fairly inexpensive so one could have a rails  
application on 2 different vps systems (not on the same server, possibly  
not  
even in the same city). I’ve read a little about mysql replication.

Is there any service that allows rapid fail over from one host to  
another?  
If so, how do you configure replication such that it fails over  
properly.  
Then how do you resync when the original server comes back on-line.

Thanks for your help.

-Kelly

---

<div class="post-metadata">

**Author:** ![aseldo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@aseldo](https://www.ruby-forum.com/u/aseldo)\
**Post date:** [February 7, 2006, 2:42pm UTC](https://www.ruby-forum.com/t/inexpensive-ways-to-make-a-rails-application-highly-availabl/53482/2 "2006-02-07T14:42:56Z")

</div>

I’m in the middle of starting my own company in the UK, which will use  
rails as its webbased technology and will provide Xen virtual servers  
very cheaply.  
The price is the lowest you will find on the internet.  
the company is called [www.xensolutions.co.uk](http://www.xensolutions.co.uk)

It will be open soon.

I guess to answer your question the failover has to be dealt by the  
nameserver.  
You configure it to change to the secondary server when the primary is  
unresponsive.

Kelly Dwight F. wrote:

> I’m interested in making a low volume rails application very available.  
> This  
> means that I would like to have  
> an alternate server for those times when the primary server is  
> unavailable  
> for whatever reason.
> 
> Virtual private servers are fairly inexpensive so one could have a rails  
> application on 2 different vps systems (not on the same server, possibly  
> not  
> even in the same city). I’ve read a little about mysql replication.
> 
> Is there any service that allows rapid fail over from one host to  
> another?  
> If so, how do you configure replication such that it fails over  
> properly.  
> Then how do you resync when the original server comes back on-line.
> 
> Thanks for your help.
> 
> -Kelly

---

<div class="post-metadata">

**Author:** ![aseldo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@aseldo](https://www.ruby-forum.com/u/aseldo)\
**Post date:** [February 7, 2006, 3:27pm UTC](https://www.ruby-forum.com/t/inexpensive-ways-to-make-a-rails-application-highly-availabl/53482/3 "2006-02-07T15:27:08Z")

</div>

I found something that might be more interest to you:

> **[The Gentoo Linux](https://www.customessaymeister.com/essay/the-gentoo-linux)**
>
> ⭐ Gentoo Linux is a distribution or operating system that provides users with extensive customizability. Its creator, Daniel Robbins, developed the system to minimize CPU usage and improve system performance.

If you setup your IP to failover to a different server and use the drbd  
technology to sync the file system between 2 hosts then you have the  
perfect failover system for your application.

That should be fun to setup 🙂

Kelly Dwight F. wrote:

> I’m interested in making a low volume rails application very available.  
> This  
> means that I would like to have  
> an alternate server for those times when the primary server is  
> unavailable  
> for whatever reason.
> 
> Virtual private servers are fairly inexpensive so one could have a rails  
> application on 2 different vps systems (not on the same server, possibly  
> not  
> even in the same city). I’ve read a little about mysql replication.
> 
> Is there any service that allows rapid fail over from one host to  
> another?  
> If so, how do you configure replication such that it fails over  
> properly.  
> Then how do you resync when the original server comes back on-line.
> 
> Thanks for your help.
> 
> -Kelly

---

<div class="post-metadata">

**Author:** ![aseldo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@aseldo](https://www.ruby-forum.com/u/aseldo)\
**Post date:** [February 7, 2006, 6:35pm UTC](https://www.ruby-forum.com/t/inexpensive-ways-to-make-a-rails-application-highly-availabl/53482/4 "2006-02-07T18:35:01Z")

</div>

The dns failover services of companies like zonedit or dnsmadeeasy look  
interesting. Has anyone configured a rails application to work with dns  
failover? Any suggestions on how to configure the application and  
database  
so that when one site goes down the other can pick up? And just as  
important, when the first site comes back up…

-Kelly

---

<div class="post-metadata">

**Author:** ![aseldo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@aseldo](https://www.ruby-forum.com/u/aseldo)\
**Post date:** [February 7, 2006, 7:09pm UTC](https://www.ruby-forum.com/t/inexpensive-ways-to-make-a-rails-application-highly-availabl/53482/5 "2006-02-07T19:09:48Z")

</div>

On 2/7/06, Kelly Dwight F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > That should be fun to setup 🙂
> > 
> > > Virtual private servers are fairly inexpensive so one could have a  
> > > Then how do you resync when the original server comes back on-line.  
> > > removed\_email\_address@domain.invalid

Hey SwitchTower gurus!!  
Isn’t a farm a better solution for this? I’m thinking even a farm of 2  
would be easier to maintain/administer than “failover”.

What do you think?

–
