LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: ldirectord tests for custom apps

To: patl@xxxxxxxxxxxx, <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: ldirectord tests for custom apps
From: Horms <horms@xxxxxxxxxxxx>
Date: Tue, 30 Nov 2004 14:43:04 +0900
On Mon, Nov 22, 2004 at 05:30:47PM -0600, Patrick LeBoutillier wrote:
> Hi all,
> 
> Here is a small patch (for "Id: ldirectord,v 1.77.2.5 2004/09/13 07:42:41
> horms Exp") that allows
> ldirectord to load and call code to test custom applications.
> 
> The idea is simple: the 'plugins' configuration directive allows the user
> to specify a Perl script that will
> be require'd. Then when you define a virtual service, you can set
> "service" to any value you want as long
> as you have defined a function called "check_<service>" in your plugins
> file. You can then do whatever you want here as long as you follow what
> the checks for the standard services do.
> 
> Note: Documentation is missing but I will write it up if the path is
> considered.
> 
> Note: I have also removed the "()" after the service_set declaration
> because it seemed to be interpreted as
> a function prototype from the required file.
> 
> I have seen some discussions lately on bigger efforts to modularize
> ldirectord, but this patch is very small and it works well for me so far.
> 
> Any comments/suggestions?

Thanks, its a bit hard to read in its current form,
could you send a unified diff. (use diff -u).
That would help immensely.

Thanks

-- 
Horms

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