Luqman, I understand what you mean now. I need to use a SegmentationResolver which is implemented in your plugin which will generate EVT_NODE_SEGMENTED and in turn restart the nodes which are in invalid segments.
Many thanks for writing the plugin :D On Fri, Aug 31, 2018 at 6:17 PM Lokesh Sharma <[email protected]> wrote: > Luqman, if I subscribe to EVT_NODE_FAILED, how do I figure out which node > to restart? For example in case of 2 nodes separating from each other, both > would receive that event. > > On Thu, Aug 30, 2018 at 4:30 AM luqmanahmad <[email protected]> wrote: > >> Lokesh, looking at the javadocs of [1] you can subscribe for >> EVT_NODE_FAILED >> and EVT_NODE_SEGMENTED events. >> >> From my personal experience SegmentationPolicy.NOOP is required in very >> rare >> cases. My approach would be to STOP the node in most of the cases when the >> segment happens or you can RESTART depending on your use case. >> >> [1] EVT_NODE_FAILED >> < >> https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/events/EventType.html#EVT_NODE_FAILED> >> >> >> >> >> -- >> Sent from: http://apache-ignite-users.70518.x6.nabble.com/ >> >
