-
Notifications
You must be signed in to change notification settings - Fork 25.2k
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
Add file type-based exclusion setting for searchable snapshots cache #53492
Conversation
Allows for example to configure searchable snapshots to avoid caching certain types of files, for example stored fields.
Pinging @elastic/es-distributed (:Distributed/Snapshot/Restore) |
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.
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.
...hable-snapshots/src/main/java/org/elasticsearch/index/store/SearchableSnapshotDirectory.java
Outdated
Show resolved
Hide resolved
...napshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/cache/CacheDirectory.java
Outdated
Show resolved
Hide resolved
...src/test/java/org/elasticsearch/xpack/searchablesnapshots/SearchableSnapshotsIntegTests.java
Show resolved
Hide resolved
plugins/repository-s3/src/main/java/org/elasticsearch/repositories/s3/S3BlobContainer.java
Outdated
Show resolved
Hide resolved
…nto snapshot-cache-blacklist
…nto snapshot-cache-blacklist
…nto snapshot-cache-blacklist
…nto snapshot-cache-blacklist
@elasticmachine update branch |
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.
LGTM
Allows configuring searchable snapshots to avoid caching certain types of files, for example "fdt" files for stored fields.