LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: ldirectord: checkinterval global, or per-service?

To: Guy Waugh <gwaugh@xxxxxxxxxx>
Subject: Re: ldirectord: checkinterval global, or per-service?
Cc: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
From: Horms <horms@xxxxxxxxxxxx>
Date: Thu, 8 Feb 2007 16:56:57 +0900
On Thu, Feb 01, 2007 at 04:22:41PM +1100, Guy Waugh wrote:
> Hi all,
> 
> I'm running Ultramonkey - heartbeat and ldirectord on RHEL3 boxes.
> 
> It looks to me like the 'checkinterval' parameter in an ldirectord
> config file is global... can anyone confirm or deny this? Can this be
> declared per virtual service?

I can confirm that it is global.

In a nuthell ldirectord is just a big loop, along the lines of:

  while (1) {
        start = time();
        do_checks_one_by_one();
        end = time();
        if (end - start < checkinterval)
                sleep (checkinterval - (end - start));
  }

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/


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