FW: [Spread-users] Indications from spread
Dutta Abhijit
adutta at intellinet-india.com
Tue Jul 4 05:27:28 EDT 2006
Thanx John for your help...but we have this observations..
When the cable from node1 is unplugged the event CAUSED_BY_NETWORK is
received by node2. But no notification comes to node1 (ie. To self).
Note: node1 and node2 are in same group in different boxes with daemon
running on each, connected through a LAN.
So, is there a way by which we can make the daemon post a notification event
to the application at node1 (to self) in case of cable pullout/network
fails?
Also, if we kill the daemon in node1, the other (node2) gets the same
notification (CAUSED_BY_NETWORK). So that means node2 can not distinguish
whether it is a network fail or daemon crash. Am I right?
Your inputs...
~Thanx
Abhijit
-----Original Message-----
From: spread-users-bounces at lists.spread.org
[mailto:spread-users-bounces at lists.spread.org] On Behalf Of John Lane
Schultz
Sent: Monday, July 03, 2006 9:01 PM
To: spread-users at lists.spread.org
Subject: Re: [Spread-users] Indications from spread
Dutta Abhijit wrote:
> Does spread posts separate events (state change) for these two scenarios:
>
> 1. Cable pull out in one of the nodes
> 2. If spread daemon is killed in another node.
>
> If yes, how we can trap these events.
>
Yes, Spread does generate events once the timeouts (couple of seconds)
detect
the disconnection of the daemon(s). These events will appear as membership
view
changes (CAUSED_BY_NETWORK) to surviving members of groups that have clients
connecting through the disconnecting daemon(s).
For this to work you would need to run a daemon on each of the machines you
care
about and then have at least one client connect to the system through each
daemon and all SP_join into the same group. Then membership view change
events
of CAUSED_BY_NETWORK will correspond to the above listed events. Note,
however,
that CAUSED_BY_NETWORK can also represent additive membership changes and
can
occur if, for example, you replugged the cable back in (more generally, if
the
network partition healed) and the daemons could begin communicating again.
Check out http://www.spread.org/docspread.html for more documentation.
Cheers!
--
John Schultz
Spread Concepts LLC
Phn: 443 838 2200
Fax: 301 560 8875
_______________________________________________
Spread-users mailing list
Spread-users at lists.spread.org
http://lists.spread.org/mailman/listinfo/spread-users
More information about the Spread-users
mailing list