-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce heartbeat message #309
Comments
Do you mean reducing the size of |
Canceling heartbeats. |
How does a follower keep not becoming a candidate without receiving heartbeats? OTOH, what if the current leader steps down? |
BTW canceling heartbeats do not mean cancel all heartbeats, just reset the |
Do you mean not to send a heartbeat if an append message is sent within an heartbeat_elapsed ticks? I think it can bring little improvement. When under high load, heartbeat message count is way too smaller than the count of message append; when group is idle, there is too few append messages that heartbeat message is always sent out. There should still be an improvement depends on the configuration of heartbeat-elapsed though. |
Ok, I think I've gotten the idea you described: only sending heartbeats when there are no It sounds like a good idea :). |
Yes, what you guy said is right. |
As for implementation should be quite simple I think, you can try to just set the leader's |
OK, let me try. |
With current implement, a
MsgHeartbeat
do these things:While the
MsgAppend
already do the first, and the second are also easy to doneby attach the
ctx
withMsgAppend
, we can reduceMsgHeartbeat
by :MsgAppend
check if theheartbeat_elapsed
reach a thresholdheartbeat_elapsed
and attach thectx
on this msg if there is oneis it possible to implement and improve a bit performance ?
The text was updated successfully, but these errors were encountered: