Skip to content

Conversation

@john-wagster
Copy link
Contributor

@john-wagster john-wagster commented Nov 21, 2025

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.

@john-wagster john-wagster added :Search Relevance/Vectors Vector search and removed WIP labels Nov 21, 2025
@john-wagster john-wagster marked this pull request as ready for review November 21, 2025 19:59
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Nov 21, 2025
@elasticsearchmachine
Copy link
Collaborator

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?
Copy link
Member

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.

Copy link
Contributor Author

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

@john-wagster john-wagster merged commit 943990e into elastic:main Nov 21, 2025
33 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :Search Relevance/Vectors Vector search Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants