[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-ha-dev
Subject:    Re: [Linux-ha-dev] Re: [Linux-ha-cvs] 'linux-ha/heartbeat
From:       Alan Robertson <alanr () unix ! sh>
Date:       2001-09-08 4:11:02
[Download RAW message or body]

Horms wrote:
> 
> On Thu, Sep 06, 2001 at 11:41:54AM -0600, Alan Robertson wrote:
> > linux-ha-cvs-admin@lists.community.tummy.com (horms I suspect) wrote:
> 
> It was me.
> 
> > > Update of /home/cvs/linux-ha/linux-ha/heartbeat
> > > In directory community.tummy.com:/tmp/cvs-serv14025
> > > 
> > > Modified Files:
> > > Makefile.am heartbeat.c
> > > Added Files:
> > > setproctitle.c setproctitle.h
> > > Log Message:
> > > Added code to set proctitle for heartbeat processes. Working on why heartbeat \
> > > doesn't restart itself properly. I'd send the latter as a patch to the list but \
> > > it is rather intertwined in the former
> > 
> > I thought the restart problem was solved if one used the CVS version.  As
> > far as I can tell it is...
> 
> Not from what I was seeing. Even basic shutdowns seemed problematic with
> the previous CVS version, if the hertbeat had aquired resources that took
> more than a second or so to relinquish. Basically what was happening is
> that the master status process was waiting for the resources to shutdown
> and a SIGKILL came along and killed it, leaving and child heartbeat
> processes (read child, write child and control process) dangling.
> 
> The major change I have made is to use SIGTERM instead of SIGKILL so
> the process has a much better chance of doing the right thing.
> 
> There are still some problems with the code that I sumbitted, I inted to
> track them down, but I think that on the whole it is a lot more robust than
> the previous iteration.


Oh... I understand the problem.  I changed the startup order.  That's what
broke this.  Collapsing to a single "master" process would make this go
away...  So would changing the startup order back like it was.

	-- Alan Robertson
	   alanr@unix.sh
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.community.tummy.com
http://lists.community.tummy.com/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic