Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Failover algorithm
PostPosted: Fri Jun 10, 2011 7:15 am 
Offline
Newbie

Joined: Tue Jun 14, 2005 7:08 am
Posts: 3
Hi,

is it possible to add a failover algorithm, which technically isn't used for load balancing but only high availability? Only thing it needs to do is have a primary IP and a secondary IP, if primary goes down, connections go to secondary.

Thinking of running a HA MySQL server with that, and the easier it is to setup, the better (i.e. not doing any of the IP swapping mojo ourselves).

Anyhow, just an idea...

-Paul


Top
   
 Post subject:
PostPosted: Wed Jun 22, 2011 5:40 pm 
Offline
Newbie

Joined: Wed Jun 22, 2011 5:32 pm
Posts: 2
You can already do this with tools available to you.

There's a write-up here http://library.linode.com/linux-ha

I've done this on many servers, physical and virtual, it works quite well. Add DRBD volumes to your MySQL setup and you'll be bombproof.

Another idea, if you're only looking at MySQL durability, is to just set up the two nodes in master-master mode. It's a bit easier to set up, and some would argue it's easier the long term as well (although you can definitely run into walls). Each of your app servers (be they separate or the same as your DBs) can then just access localhost and the DB will handle the syncing. I do this across three Linode data centers using OpenVPN for the tunnel without problems.

On my web servers I use a software load balancer so that even though my front-end is active/backup using HA, the traffic between web servers gets balanced. Of course then Linode came out with NodeBalancers, but it's nice having options.


Top
   
 Post subject:
PostPosted: Wed Jun 22, 2011 5:52 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Last I checked MySQL doesn't always play well in a master master format, I think google did some work on this but not sure if it ever got merged into mainstream mysql. In a HA setup master-slave would work fine if the slave is hot standby.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group