Skip to content
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

MB-60971: Improve drain rate of the in-memory segments #2100

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Thejas-bhat
Copy link
Member

  • Currently when there is a certain amount of data in memory, persister performs an in-memory merge and introduces the merged file as part of the new snapshot.
  • This can have effects where the index is not able to ingest data because of an expensive ongoing in-memory merge operation which is not really bounded.
  • The PR introduces the concept of persister workers and the max amount of data each worker can parallely perform an in-memory merge. The merged files are introduced to the system in a single step however to avoid having too many files in the system (thereby leading to pressure on the cleanup procedure which deletes these old zero-ref'd files)
  • The original behaviour of merging all segments and flushing in one shot is still optionally supported though.

@Thejas-bhat Thejas-bhat marked this pull request as ready for review December 3, 2024 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants