-
Notifications
You must be signed in to change notification settings - Fork 45
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
Change in chitchat gossiping priority. #120
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fulmicoton
force-pushed
the
issue/119-gossip-priority-order
branch
from
February 19, 2024 02:22
3b3a2e7
to
fb72c93
Compare
fmassot
reviewed
Feb 19, 2024
fmassot
reviewed
Feb 19, 2024
fmassot
approved these changes
Feb 19, 2024
guilload
reviewed
Feb 19, 2024
fulmicoton
force-pushed
the
issue/119-gossip-priority-order
branch
2 times, most recently
from
February 23, 2024 03:07
9f4081a
to
ca80b6c
Compare
Following the original paper, chitchat currently first shares nodes with the highest number of stale values. As a side effect, nodes that are not emitting many KVs are gossiped last. In quickwit, under a little bit of load (1000 indexes on 10 indexer), it has a very dire effect. Indexer that reconnect have to gossip the entire cluster state (~10MB) before being able to get any information about the metastore. Knowing at least one node with the metastore service is required for nodes to declare themselves as live. This PR changes the gossip order. It prioritizes nodes for which the node that originated the Syn message has not receives any KV yet. This is identified by the fact that either the node was not part of the digest at all, or the floor_version is equal to 0. The latter (floor_version == 0) should not happen today, but this case is done in preparation for another PR updating heartbeat on Syn.
Co-authored-by: Adrien "Code Monkey" Guillo <[email protected]> Co-authored-by: François Massot <[email protected]>
fulmicoton
force-pushed
the
issue/119-gossip-priority-order
branch
from
February 23, 2024 03:20
ca80b6c
to
fa82ed1
Compare
fulmicoton
force-pushed
the
issue/119-gossip-priority-order
branch
from
February 23, 2024 03:29
fa82ed1
to
728e715
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following the original paper, chitchat currently first shares nodes with the highest number of stale values.
As a side effect, nodes that are not emitting many KVs are gossiped last. In quickwit, under a little bit of load (1000 indexes on 10 indexer), it has a very dire effect.
Indexer that reconnect have to gossip the entire cluster state (~10MB) before being able to get any information about the metastore.
Knowing at least one node with the metastore service is required for nodes to declare themselves as live.
This PR changes the gossip order.
It prioritizes nodes for which the node that originated the Syn message has not receives any KV yet.
This is identified by the fact that either the node was not part of the digest at all, or the floor_version is equal to 0.
The latter (floor_version == 0) should not happen today, but this case is done in preparation for another PR updating heartbeat on Syn.