LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-09-2013, 10:32 AM   #1
Leo-G
Member
 
Registered: May 2013
Distribution: Cent OS 6
Posts: 32

Rep: Reputation: Disabled
Advise for setting up Failover


Hi,

I have a high traffic site and want to setup failover to another service provider since the one that I have does have issues, I want to know what's the best way to do this and any recommended software for linux

thanks
 
Old 10-09-2013, 10:48 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Are you talking about failover of something you're self hosting and have two ISP providers for, or are you talking about a site that's located with a datacenter and failing over to a different datacenter?

I'll assume the second case.

At the simplest you could use a service such as nodeping to get notifications that your primary site is down and manually change DNS entries to point your site anywhere when there is a failure. Set a low < 30 seconds TTL on your records to ensure they aren't cached.

If your traffic is valuable then you could consider a paid service such as Dynect who will monitor and do the IP failover / failback for you.

You will also need to consider how you are going to replicate your site and deal with failover, this can get complex if it has a database backend as you'll need to take care of replication.
 
Old 10-09-2013, 10:56 AM   #3
Leo-G
Member
 
Registered: May 2013
Distribution: Cent OS 6
Posts: 32

Original Poster
Rep: Reputation: Disabled
I am self hosting a site on a VPS, I want to have two VPS's However I want one active and one passive. I want them with two service provider's. I want to use something like heartbeat or DRBD so that if one fails then the other takes over.

Now I know this solution needs to virtual IP, but if I have to providers How do I failover.

Hope this makes it clear
 
Old 10-09-2013, 11:18 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Ok, so who is hosting your DNS for your domain? You'll basically need whatever you have detecting the VPS provider failure to alter your DNS accordingly.

Your detection script would then changes the IP in the zone file, updates the serial number and then reload bind.
 
Old 10-10-2013, 06:59 AM   #5
tombelcher7
Member
 
Registered: Feb 2008
Location: Surrey
Distribution: Debian
Posts: 214

Rep: Reputation: 5
I think TenTenths question about the complexity of your website needs to be answered as if databases are involved then replication needs to be considered. If not then a straight synchronization between the web root between the server and some DNS change facilities implemented.............
 
Old 10-10-2013, 07:04 AM   #6
Leo-G
Member
 
Registered: May 2013
Distribution: Cent OS 6
Posts: 32

Original Poster
Rep: Reputation: Disabled
I will be using Db on another server so that's not the issue. Since it's an active passive will do an rsync, not many changes frequently so that should not be a prob. Anyways thanks for your reply I got my answer
 
  


Reply

Tags
failover



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need advise setting up CentOS server for intranet Panupat Linux - Newbie 3 01-06-2011 09:04 PM
[SOLVED] LDAP Failover timeout client setting custangro Linux - Enterprise 2 12-03-2010 03:16 PM
Hints, advise and help setting up the ultimate linux netbook Stormboy Linux - Laptop and Netbook 9 06-13-2010 05:18 PM
Newbie need advise setting up server and which Mail software to use rodgerbruce Linux - Newbie 1 01-01-2008 03:32 AM
Setting my $PATH...syntax is wrong?...please advise... cbjhawks SUSE / openSUSE 4 11-01-2006 10:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration