Skip to content

Commit

Permalink
Fork TransportClusterHealthAction to MANAGEMENT (#96546)
Browse files Browse the repository at this point in the history
This action can become fairly expensive for large states. Plus it is
called at high rates on e.g. Cloud which is blocking transport threads
needlessly in large deployments. Lets fork it to MANAGEMENT like we do
for similar CPU bound actions.

Backport of #90621 to 7.17

Co-authored-by: Armin Braun <me@obrown.io>
  • Loading branch information
DaveCTurner and original-brownbear committed Jun 5, 2023
1 parent 6a755e3 commit 9a1ee48
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public TransportClusterHealthAction(
ClusterHealthRequest::new,
indexNameExpressionResolver,
ClusterHealthResponse::new,
ThreadPool.Names.SAME
ThreadPool.Names.MANAGEMENT // fork to management since the health computation can become expensive for large cluster states
);
this.allocationService = allocationService;
}
Expand Down

0 comments on commit 9a1ee48

Please sign in to comment.