[Linux-ha-dev] Suggestion on disk based HBcomm plugin ?

Xinwei Hu hxinwei at gmail.com
Fri Jun 1 03:22:24 MDT 2007


Hi all,

  I'm trying to write a disk based HBcomm plug-in for heartbeat. 

  My current implementation is:
     write:
           write to it's own slot
           sleep 0.2s
     read:
           scan all slots for new pkt
           if (found) {
              do {
                read the slot for new pkt
              } while (checksum of pkt is wrong)
           } else {
             sleep 0.1s
           }
                
  This plug-in suffers from packages losting as you can see. Using this 
plug-in, heartbeat stops itself about 2 minutes after its starting, as it 
finds more then 6 pkts missing. 

  Such a simple protocol is used because I failed to google out something 
better. :(

  You suggestions on how to improve are really appreciated. Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dskcm.c
Type: text/x-csrc
Size: 22858 bytes
Desc: not available
Url : http://lists.community.tummy.com/pipermail/linux-ha-dev/attachments/20070601/08e7fdce/dskcm-0001.c


More information about the Linux-HA-Dev mailing list