Skip to content

Batch ILM policy cluster state updates #122917

@nielsbauman

Description

@nielsbauman

Today, ILM policy cluster state updates are not batched:

submitUnbatchedTask(
"put-lifecycle-" + request.getPolicy().getName(),
new UpdateLifecyclePolicyTask(request, listener, licenseState, filteredHeaders, xContentRegistry, client)
);

Batching these cluster state updates will reduce the number of cluster state updates the cluster needs to process. This is especially relevant in tests as the IndexTemplateRegistry adds dozens of ILM policies, each resulting in a dedicated cluster state update. This noticeably slows down cluster startup times.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions