Paulo F. Andrade 52439@IST
mailto: pfca@xxxxxxxxxxxxxxx
On 2006/09/12, at 16:42, Francisco Gimeno wrote:
hehe
by today I have though a little bit on that...
but my idea was having weigthed checks... so
-1 = NOK
0 = OK default weight
1 = OK weight 1
2 = OK weight 2
100 = weight 100
so, you can make checks returning a value depending on the load
( you will see
if it's a delay, the cpu usage or whatever ).. and then, the
ldirectord
should assign it
For you to do this and be accurate, a simple script on the director
side wouldn't be enough. I'm guessing you would have to have
something running on the real server side. If you really want to have
this, you should take a look at feedbackd -> http://ozlabs.org/~jk/
projects/feedbackd/
Currently ldirectord is built-in with many health checking scripts
(ftp smtp http pop pops nntp imap imaps ldap https dns mysql pgsql
sip). What would be great, would be the ability to add checks for
services that aren't supported (or even for those that are) without
the nedd to delve in the ld
I also would like to do something similar. My idea was to integrate
Nagios check commands for such services as squid.
Ron Owens
-----Original Message-----
From: lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
Paulo F.
Andrade
Sent: 12 September 2006 13:54
To: linuxVirtualServer.org users mailing list.
Subject: Ldirectord and custom scripts
Hi,
I was wondering if anyone has changed ldirectord to allow for custom
health checking scripts. I know I can add perl code to ldirectord so
that it can test my service, but that would be cumbersome.
I was thinking more along the line of being able to execute a custom
script (in C, python, bash whatever) and checking it's return status
to judge the server's health.
This would add greater flexibility to ldirectord. And I'm guessing
someone has already thought of this.
If no-one has made an effort to do this, I'll try and do myself!
(just have to learn perl first :) )
Thank you for your time!
Paulo F. Andrade 52439@IST
mailto: pfca@xxxxxxxxxxxxxxx
_______________________________________________
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
|