help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cf restart sequence hangs and eats CPU


From: Mark . Burgess
Subject: Re: Cf restart sequence hangs and eats CPU
Date: Wed, 22 Sep 2004 20:28:31 +0200 (MEST)

First of all  - please upgrade your software. I shall very
soon be releasing 2.1.11. I recommend that you use this for
several reasons, including security.

On 22 Sep, Tom Carlile wrote:
> Hopefully someone here can lend some insight...
> 
> I have cfengine 2.1.7p1 is setup on a pool of mixed Redhat AS 2.1 and
> 3ES servers, about 50 or so.  Every 30min I have cfexecd starting
> cfagent.  Updates occur and all my input files get updated but on some
> servers after the update cfagent is hung and consuming 49.9% or 99.9%
> cpu.  Strace on the running pid seems to indicate it is catching
> sigpipes and looping on a call to write...
> 
> This is most common on Redhat 3ES hosts but is reproducable on a few AS
> 2.1 servers.  I suspect that my restart process is somehow flawed.  See
> my update.conf below.

Sometimes scripts do hang for various reasons.

> I have noticed that usually 2 of the daemons get restarted but either
> cfenvd or cfservd are not running while cfagent is hung.  

This is normal and is an artifact of the linux thread implementation.

> I am digging to see if this is related to locks in the lock db, cfenvd's
> state or something else. I've seen similar reports of this on this list
> but not linked with a real cause.  Thanks

I do not think this has anything to do with locks. The scripts you
are calling are shell scripts. Sometimes these do not properly close
their descriptors. Try adding

 restart "service bla < /dev/null"

M


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




reply via email to

[Prev in Thread] Current Thread [Next in Thread]