Skip to content

The GET _ilm/policy API runs on the transport_worker thread #96568

@andreidan

Description

@andreidan

Elasticsearch Version

ALL

Installed Plugins

No response

Java Version

bundled

OS Version

Darwin

Problem Description

The GET _ilm/policy API could return many records (for clusters that have
many ILM policies).
The API runs on the transport_worker thread so this can cause master instability
issues ( https://github.com/elastic/elasticsearch/blob/main/x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/action/TransportGetLifecycleAction.java#L58 ).

This proposes moving the API on the MANAGEMENT thread pool and making
the API cancellable.

Steps to Reproduce

Have thousands of ILM policies.
Repeatedly issue GET _ilm/policy

Logs (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions