-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add OffHeapBytesSizes for Stats #138433
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
Add OffHeapBytesSizes for Stats #138433
Conversation
|
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
| // var centroids = Map.of(EXTENSION, fe.xxxLength()); | ||
| // var clusters = Map.of(EXTENSION, fe.yyyLength()); | ||
| // return KnnVectorsReader.mergeOffHeapByteSizeMaps(raw, centroids, clusters); | ||
| // TODO: report on desired off-heap requirements instead or in addition to max? |
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.
I don't think we can indicate "desired" here, it will always be weird given the user query patterns.
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.
fair enough i'll nix the todo
Addresses (or at least starts to address): #128458
This addresses reporting on the bytes used by diskbbq by exposing the sizes of the centroids and postings list files. While we don't always need the entire structure off heap this is better than reporting 0s. The docs will be updated a good bit to reflect this. At some point in the future we should revisit if we want to report something smaller or somehow report an estimate for what needs to be resident in off heap ram.
This wil require updates to docs and specifications. Those PRs are here:
There are also updates needed for esdiag and all of the clients and I'll reach out separately on those.