Skip to content

Should we automatically use the FrozenEngine on cold and frozen tiers? #71002

@jpountz

Description

@jpountz

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

No one assigned

    Labels

    :Search/SearchSearch-related issues that do not fall into other categories>enhancementTeam:SearchMeta label for search team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions