Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Jun 17, 2010 3:08 am 
Offline
Senior Newbie

Joined: Thu Jun 17, 2010 2:54 am
Posts: 9
Hi, I'm trying to use keepalived to create an HA setup for two web servers. I have 3 public IPs, a static for each node and a "shared" ip. The shared was created as a second IP for www1. I've set up the IP Failover linkage for both nodes in the Network tab of the management interface.

I have two questions:
1. How do I get www1 to respond using the new public ip? I created a virtual ethernet for it but it will doesn't respond to any requests. I also tried taking down the main IP and replacing it with the new one but it doesn't work. Any ideas?

2. Can anyone give me article links (or just some tips) on setting up keepalived for public IPs between two servers? I'm a bit confused how it all works. I'm using HAproxy to load balance, btw.

Thanks!!


Top
   
 Post subject:
PostPosted: Thu Jun 17, 2010 4:49 am 
Offline
Senior Newbie

Joined: Thu Jun 17, 2010 2:54 am
Posts: 9
Figured it out. I trolled the forum for a bit and found http://www.linode.com/forums/viewtopic.php?t=4946. Tried it and it worked. Also, set up keepalived using http://www.howtoforge.com/setting-up-a- ... n-lenny-p2 and hey, it "just works."

I never knew about the "ip address ..." command.


Top
   
 Post subject:
PostPosted: Thu Jun 17, 2010 11:07 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Keep in mind that since Linode's IP failover requires that both nodes be in the same datacenter, it's not really a HA setup since you have no geographic diversity. All you're protected from is host failures, not DC-wide issues (such as connectivity).


Top
   
 Post subject:
PostPosted: Thu Jun 17, 2010 12:23 pm 
Offline
Senior Newbie

Joined: Thu Jun 17, 2010 2:54 am
Posts: 9
Thanks for the tip. Multiple datacenters isn't something I'm going to attempt just yet. I understand the benefits of it, but until we start getting real traffic from real customers, it doesn't make too much sense for us to double our hosting infrastructure. Also there's only so much I can do in a night...I'm learning all this scaling/HA stuff little-by-little as I go in my free time.

Out of curiosity, is the only way to do DC failover through DNS?


Top
   
 Post subject:
PostPosted: Thu Jun 17, 2010 12:51 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
haha326 wrote:
Out of curiosity, is the only way to do DC failover through DNS?


I believe so, since there's no IP failover.


Top
   
 Post subject:
PostPosted: Thu Jun 17, 2010 3:26 pm 
Offline
Junior Member

Joined: Mon Jun 27, 2005 3:40 am
Posts: 48
obs wrote:
haha326 wrote:
Out of curiosity, is the only way to do DC failover through DNS?


I believe so, since there's no IP failover.


Without using some form of global load balancing solutions, DNS is the only surefire way I can think of off the top of my head. And in theory, GLB just hacks up DNS to work in a way that provides the redundancy.


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


Who is online

Users browsing this forum: No registered users and 1 guest


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