Ignoring past events

11 views
Skip to first unread message

fazal

unread,
Jul 10, 2017, 2:08:14 PM7/10/17
to Serf
Is it possible to ignore events before member joins the cluster?

Regards

fazal

unread,
Jul 10, 2017, 2:39:51 PM7/10/17
to Serf
It is possible to use snapshots to ignore past events before shutdown. But what I'm trying to ignore is all events before start.

Maybe my understanding is wrong, I think it is possible to use Ltime for this? But I'm not sure how to access the current Ltime of cluster for comparison with event Ltime.

fazal

unread,
Jul 10, 2017, 10:01:00 PM7/10/17
to Serf
Nevermind. It is literally the second option to Join. I've been just blindly passing it false.

Dhananjay Kumar

unread,
Jul 17, 2017, 2:57:54 AM7/17/17
to Serf
Hi,

I have a cluster consisting of 4 nodes(A,B,C,D).  When one of the nodes(say A) leave the cluster, all other nodes try to join the left node periodically(i.e command is: serf join IP_of_A). Once A comes up, it will be pulled to cluster since other nodes try to 'join' it.  But it gets all past events which happened between B,C,D in the absence of A. Is it possible to avoid passing these past events A?
I am not setting '-reply' for join so I was hoping A shouldn't get the replay of events. Any idea how to avoid 'replay' of events?

Thanks,
Dhananjay

Armon Dadgar

unread,
Jul 17, 2017, 2:03:54 PM7/17/17
to ser...@googlegroups.com, Dhananjay Kumar
Hey Dhananjay,

If node A leaves gracefully, then the other nodes should not attempt to contact it. They will only attempt to contact “failed” nodes to gracefully recover from failures or network partitions.
Once that node has left, it should rejoin with “-replay=false” to avoid getting all the old events played back. Hope that helps!

Best Regards,
Armon Dadgar
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/serf/issues
IRC: #serfdom on Freenode
---
You received this message because you are subscribed to the Google Groups "Serf" group.
To unsubscribe from this group and stop receiving emails from it, send an email to serfdom+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/serfdom/ac90c8ab-128a-4e5b-88ae-0de3cd9121e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages