Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure the threadpool for leader cluster #14

Merged
merged 1 commit into from
Jun 15, 2021
Merged

Conversation

ankitkala
Copy link
Member

Description

Configured a separate thread pool for leader.

I've kept the thread pool configuration in parity with search which is what we were using earlier. I've also added settings to keep it configurable. Search uses AutoQueueAdjustingExecutorBuilder which has fixed number of worker threads but can dynamically change queue size.

Since AutoQueueAdjustingExecutorBuilder can't be accessed by the plugins so i've used FixedExecutorBuilder which has a fixed number of worker threads and a fixed size queue.

References:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@ankitkala ankitkala marked this pull request as ready for review June 8, 2021 05:11
Copy link
Contributor

@tbhanu-amzn tbhanu-amzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other changes look fine.

Copy link
Contributor

@tbhanu-amzn tbhanu-amzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ankitkala ankitkala merged commit 84b567f into main Jun 15, 2021
@ankitkala ankitkala deleted the leader_threadpool branch June 15, 2021 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants