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

Reconfigure remote state thread pool count #16245

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

soosinha
Copy link
Member

@soosinha soosinha commented Oct 9, 2024

Description

Configuring the thread pool for remote state read and write in order to increase the thread count.

Related Issues

#16055

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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.

Copy link
Contributor

github-actions bot commented Oct 9, 2024

❌ Gradle check result for 0ffa818: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

return boundedBy((allocatedProcessors(settings) + 7) / 8, 1, 2);
return boundedBy((allocatedProcessors(settings) + 1) / 2, 1, 2);
Copy link
Collaborator

Choose a reason for hiding this comment

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

sorry what does this change try to achieve for my understanding and is it used only on the context of remote publication

Copy link
Member Author

Choose a reason for hiding this comment

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

With the previous formula (boundedBy((allocatedProcessors(settings) + 7) / 8, 1, 2)), the number of threads would be 2 when number of cores is 16 or more. For cores less than 1, number of threads would be 1.
With the new formula, the number of threads would be 2 when there are 4 cores or more.

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.

2 participants