[Spread-users] Local connection heartbeats

Alec H. Peterson alec.peterson at messagesystems.com
Thu Sep 7 15:54:51 EDT 2006


Hi,

On Sep 8, 2006, at 3:26, Camp, TracyX E wrote:

> I’ve worked on a forked variant of spread in the recent past.  I’m  
> planning on posting a few of the more useful bits of the variant  
> fairly soon.  Anyways we did have a watchdog facility in our  
> variant.  It worked by having an API that scheduled a timed event  
> to the main client event loop (i.e. an E_queue() call).  The  
> callback the API specified would send a heartbeat message to the  
> local spread daemon and schedule another upcall.  The spread-daemon  
> had an aliveness counter for each socket that if it wasn’t updated  
> in a certain number of seconds would cause various things to  
> happen.  In our case we took the entire spread daemon down, but in  
> your case it could simply do a sess_kill() on the offended socket,  
> which would in turn cause membership to change.
Interesting, that sounds like it would work perfectly.  Thanks for  
the info!

Alec


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.spread.org/pipermail/spread-users/attachments/20060908/675186b9/attachment.html 


More information about the Spread-users mailing list