Unix Technical Forum

Re: CARP + individual services ?

This is a discussion on Re: CARP + individual services ? within the lucky.openbsd.misc forums, part of the OpenBSD category; --> On Thu, Aug 24, 2006 at 12:00:10PM -0700, ben wrote: > I just spent more time than I would ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > lucky.openbsd.misc

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 06:23 AM
Joachim Schipper
 
Posts: n/a
Default Re: CARP + individual services ?

On Thu, Aug 24, 2006 at 12:00:10PM -0700, ben wrote:
> I just spent more time than I would have liked to searching for info
> on providing HA/LB via CARP (and possibly other tools) for individual
> services (such as http) rather than IP addresses. I was surprised to
> find just about nothing on the topic since it seems like something
> people would want to use CARP for.
>
> For example, lets say I have two machines set up as web servers,
> sharing an IP address and load balanced with CARP. The httpd on one
> host dies but it's interface is fine.
>
> Doesn't that mean CARP has no effect and approximately half the
> requests going to the virtual host ip address will timeout? That
> sucks.


Yes, that would be the result.

> I'm guessing you can configure ifstated to run curl or something every
> few seconds to monitor the httpd and respond by taking the CARP
> interface down or rig up some hoc shell script to do roughly the same
> thing. Right?


Well, you wouldn't ordinarily use ifstated(8) for that - it's meant to
respond to changes in the interface, not initiate them - but that's
essentially correct.

> Seems like someone, somewhere must have thought about doing this with
> airline food before. Am I right folks??


I'm afraid I don't catch the airline food, but there certainly are
scripts around. Some were posted here, IIRC.

Note that application-level proxies, while much more heavyweight, do
have something of a place here.

Joachim

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:11 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com