On Tue, Jul 27, 2010 at 03:48:29PM +0530, Sampathkumar, Kishore wrote: > Hi, > > When a network partitioning occurs, in what way are the "applications" of > corosync cluster framework notified,
When you call cpg_initialize() you pass in the callbacks, one of which is the configuration callback. This is called when ever an application joins or leaves the group you have joined. So if you have a 4 node cluster and an application on each node that joins the same group, lets say "group_a" then the cluster splits (1,2) & (3,4). node 1 and 2 will get the configuration callback saying nodes 3 and 4 left. node 3 and 4 will get the configuration callback saying nodes 1 and 2 left. If you are using the quorum API then you will also get callbacks saying whether or not the sub-cluster has quorum. > and how should they react? Specifically, if I have written an application > that uses CPG API's, Quorum API's with "votequorum" configured as the quorum > service, what should I expect? Will there be notifications? If so, what kind? > Have a look in test/testquorum.c and test/testcpg.c for the syntax of the callbacks. -Angus > Regards, > > - Kishore > _______________________________________________ > Openais mailing list > [email protected] > https://lists.linux-foundation.org/mailman/listinfo/openais _______________________________________________ Openais mailing list [email protected] https://lists.linux-foundation.org/mailman/listinfo/openais
