-
Notifications
You must be signed in to change notification settings - Fork 14
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-61029: Deferring the closing of vector index #226
Conversation
Thejas-bhat
commented
Mar 12, 2024
•
edited by abhinavdangeti
Loading
edited by abhinavdangeti
- Uses the exponentially weighted moving average to get the average hits on a particular field (thereby a particular vector index). The index stays in the memory when the average of the hits is above a certain threshold and below which the index is closed and the memory is freed for reuse on C side of things.
- This ensures that we are not keeping the index in the memory even when there is no query workload on the field in a segment so the memory pressure does get reduced on the C side of operations.
068f7af
to
d076ea2
Compare
7273230
to
3338deb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Thejas-bhat still quite uneasy with the possibility of race-iness within this code.
@Thejas-bhat I'd appreciate an illustration on how this cache management is being done with ewma tracker - perhaps on the ticket or a document which we can attach to the ticket. |
8376458
to
d202d4c
Compare
e3fce1d
to
3d9f60d
Compare
Looking almost ready @Thejas-bhat 👍🏼 |
…cache - This prevents accidental clearing of cache entries while in use
- address review comments
97f15cb
to
774b93d
Compare
826fb28
to
1ca866b
Compare
Includes: * eeb2336 Likith B | MB-61029: Caching Vec To DocID Map (blevesearch/zapx#231) * b2384fc Rahul Rampure | minor optimizations and bug fixes (blevesearch/zapx#233) * b56abea Thejas-bhat | MB-61029: Deferring the closing of vector index (blevesearch/zapx#226)
Includes: * eeb2336 Likith B | MB-61029: Caching Vec To DocID Map (blevesearch/zapx#231) * b2384fc Rahul Rampure | minor optimizations and bug fixes (blevesearch/zapx#233) * b56abea Thejas-bhat | MB-61029: Deferring the closing of vector index (blevesearch/zapx#226)
- Uses the exponentially weighted moving average to get the average hits on a particular field (thereby a particular vector index). The index stays in the memory when the average of the hits is above a certain threshold and below which the index is closed and the memory is freed for reuse on C side of things. - This ensures that we are not keeping the index in the memory even when there is no query workload on the field in a segment so the memory pressure does get reduced on the C side of operations. --------- Co-authored-by: Likith B <[email protected]> Co-authored-by: Abhinav Dangeti <[email protected]>