Skip to content

[Feature Request] segment replication and merged segment warmer use a dedicated threadpool #18755

@guojialiang92

Description

@guojialiang92

Is your feature request related to a problem? Please describe

Currently, both segment replication and merged segment warmer are scheduled using the GENERIC thread pool, which is responsible for node discovery, peer recovery, and many transport actions.

When the number of shards increases, the number of segment replication and merged segment warmer task will also increase accordingly.

Using an dedicate thread pool can not only avoid resource contention but also make it easier to monitor segment replication-related tasks.

Describe the solution you'd like

We should use a dedicated threadpool (say REPLICATION) to avoid any contention due to resource starvation.

Related component

Indexing:Replication

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Indexing:ReplicationIssues and PRs related to core replication framework eg segrepenhancementEnhancement or improvement to existing feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions