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

[Searchable Snapshots] Use _primary as the default search preference for searchable snapshot indices #7593

Closed
kotwanikunal opened this issue May 17, 2023 · 0 comments · Fixed by #7628
Assignees
Labels
enhancement Enhancement or improvement to existing feature or request Indexing & Search

Comments

@kotwanikunal
Copy link
Member

kotwanikunal commented May 17, 2023

Is your feature request related to a problem? Please describe.
Searchable snapshots enable querying of indices stored within the snapshots on repositories by only fetching data needed by the query on-demand. It utilizes a file cache for enabling downloads and tracking frequently used pieces of data called as blocks. Queries can have a better latency if the same shard is queried for repeated/similar queries since the cache efficiency will be higher.

Describe the solution you'd like

  • Use primary as the default search preference for searchable snapshot indices
    • The default routing of requests for searchable snapshot indices should have a _primary preference
    • This will ensure that only the primaries answer the queries for that particular shard, leading to a high cache efficiency

Describe alternatives you've considered
Described as a part of #7436

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request Indexing & Search
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants