LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: checktype = N question

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: checktype = N question
From: Horms <horms@xxxxxxxxxxxx>
Date: Thu, 15 Aug 2002 14:16:23 +0900
Hi Martijn,

I'm not particularly familiar with that section of the code.
However, it soulds like you would need to customise the code
to do what you want.

On Tue, Aug 13, 2002 at 10:07:05AM +0200, Martijn Klingens wrote:
> Since I updated my old ldirectord to current CVS I have the checktype option 
> in ldirectord, and I want to start using it. But I have one question...
> 
> Short question: does 'checktype = 6' cache the result from the real check 
> that's done every N times and force the negotiate check over the connect 
> check when failures were detected?
> 
> Long explanation:
> The default is checktype = negotiate, which is what I'm using now for most 
> websites. Some sites that are merely HTTP redirects have a checktype = 
> connect. Both work fine.
> 
> Checktype = negotiate, however, is pretty heavy on the webserver, it's even 
> the most visited page for all but our most popular websites. In order to cut 
> down on the load we first made the negotiate check such that it only checks 
> the actual database connection once every minute, and during the rest of the 
> time just return the cached success value from this check. If the last check 
> signaled failure the full check is always performed. Obvious ASP and IIS 
> errors still turn up this way, and at the same time the processing time on 
> web and database servers is severely cut (as long as there's no failure).
> 
> I want to cut down on this even more though, because the negotiate check 
> still 
> uses a rather heavy http socket connection from the realserver's IP to the 
> VIP (which can only be done on the realserver itself if you want to enforce 
> ending up on a single particular realserver).
> 
> Thus, I want to use 'checktype = 6' to do 5 simple connect checks and once 
> every minute the full negotiate check.
> 
> BUT: that only makes sense if the other 5 checks still do the full negotiate 
> when the last negotiate wasn't succesful.
> 
> Is that the case?
> 
> Thanks in advance,
> -- 
> Martijn
> 
> 
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://www.in-addr.de/mailman/listinfo/lvs-users

-- 
Horms
        


<Prev in Thread] Current Thread [Next in Thread>