Skip to content

Forced merge operation is performed on shards that match a large number of indexes with wildcard characters, causing excessive pressure on node IO and affecting write operations that cannot be canceled. #137515

@douglli

Description

@douglli

Elasticsearch Version

7.14.2

Installed Plugins

No response

Java Version

java version "21.0.7" 2025-04-15 LTS

OS Version

86_64 x86_64 GNU/Linux

Problem Description

Forced merge operation is performed on shards that match a large number of indexes with wildcard characters, causing excessive pressure on node IO and affecting write operations that cannot be canceled.
Can you provide a maximum shard limit for forcemerge requests and a maximum segment size limit for merging.
request like this: POST /.ds-my-data-stream-*/_forcemerge?max_num_segments=1, the wildcard characters match 195 indexes

Steps to Reproduce

Create a large number of indexes prefixed with '.ds-my-data-stream-', index GB level data, and execute the 'forcemerge' statement POST /.ds-my-data-stream-*/_forcemerge?max_num_segments=1

Logs (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    >bugneeds:triageRequires assignment of a team area label

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions