-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Search/SearchSearch-related issues that do not fall into other categoriesSearch-related issues that do not fall into other categories>enhancementTeam:SearchMeta label for search teamMeta label for search team
Description
FrozenEngine is a variant of InternalEngine that requires data to be read-only and lazily opens an IndexReader when needed. Should we consider automatically using this feature in the cold and frozen tiers? It turns out that the changes we did in order to reduce memory usage of shards had the side-effect of making shards faster to open: opening a force-merged shard containing ~100M samples of metric data takes ~1.5 msec on my machine and allocates ~800kB of memory.
Pros:
- More memory for other operations such as aggregations.
- Lucene segment memory usage can no longer prevent Elasticsearch from using very dense nodes.
Cons:
- Slightly slower searches.
- Slightly more garbage for every search.
We could reduce the impact on search by keeping a cache of the most frequently used shards.
Metadata
Metadata
Assignees
Labels
:Search/SearchSearch-related issues that do not fall into other categoriesSearch-related issues that do not fall into other categories>enhancementTeam:SearchMeta label for search teamMeta label for search team