Skip to content

Comments

Be more specific when clearing cache for searchable snapshots shards#66011

Merged
tlrx merged 1 commit intoelastic:7.xfrom
tlrx:be-more-specific-when-clearing-cache-7.x
Dec 8, 2020
Merged

Be more specific when clearing cache for searchable snapshots shards#66011
tlrx merged 1 commit intoelastic:7.xfrom
tlrx:be-more-specific-when-clearing-cache-7.x

Conversation

@tlrx
Copy link
Member

@tlrx tlrx commented Dec 8, 2020

Today we evict all cache files that belong to a given searchable
snapshot directory when this directory is closed or if the Clear
Cache API is used. This eviction iterates over all cache entries
and find the entries that matches a given shard. We can be
more specific than that by recreating the cache keys to evict
from the list of file names instead of iterating over entries.

Backport of #66003 for 7.11

…6003)

Today we evict all cache files that belong to a given searchable
snapshot directory when this directory is closed or if the Clear
Cache API is used. This eviction iterates over all cache entries
and find the entries that matches a given shard. We can be
 more specific than that by recreating the cache keys to evict
from the list of file names instead of iterating over entries.
@tlrx tlrx added >enhancement :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs backport v7.11.0 labels Dec 8, 2020
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team. label Dec 8, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@tlrx tlrx changed the title Be more specific when clearing cache for a specified shard Be more specific when clearing cache for searchable snapshots shards Dec 8, 2020
@tlrx tlrx merged commit 573430f into elastic:7.x Dec 8, 2020
@tlrx tlrx deleted the be-more-specific-when-clearing-cache-7.x branch December 8, 2020 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >enhancement Team:Distributed Meta label for distributed team. v7.11.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants