Skip to content

Add file type-based exclusion setting for searchable snapshots cache #53492

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

Merged

Conversation

ywelsch
Copy link
Contributor

@ywelsch ywelsch commented Mar 12, 2020

Allows configuring searchable snapshots to avoid caching certain types of files, for example "fdt" files for stored fields.

Allows for example to configure searchable snapshots to avoid caching certain types of files, for example stored fields.
@ywelsch ywelsch added >enhancement :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs labels Mar 12, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Snapshot/Restore)

@ywelsch ywelsch requested review from tlrx and DaveCTurner March 12, 2020 16:09
Copy link
Member

@tlrx tlrx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks this change @ywelsch. I left few minor comments.

I was about to do a similar change but I put it on hold as I'm more and more tempted to merge CacheDirectory and SearchableSnapshotDirectory together and rely on something like CachedIndexInput and DirectIndexInput objects. I suspect it would simplify things and would allow stats for cached/non cached reads (because this PR shortcut the stats for blacklisted files and I think it is still valuable to have them as direct reads). Anyway, this should not block this PR.

@ywelsch ywelsch requested a review from tlrx March 27, 2020 10:23
@ywelsch
Copy link
Contributor Author

ywelsch commented Mar 27, 2020

@elasticmachine update branch

@ywelsch ywelsch changed the title Add file type-based blacklist setting for searchable snapshots cache Add file type-based exclusion setting for searchable snapshots cache Mar 27, 2020
Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ywelsch ywelsch merged commit e669f14 into elastic:feature/searchable-snapshots Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants