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

Limit default max-workers to 8 #8389

Conversation

coltonb-arcadia
Copy link

@coltonb-arcadia coltonb-arcadia commented Aug 30, 2023

Pull Request Check List

Resolves: #3219

  • Added tests for changed code.
  • Updated documentation for changed code.

When os.cpu_count() reports a large number of cores, "Connection reset by peer" errors seem to be raised fairly often because of the resulting huge number of requests being made. It struck me as more intuitive for the end user to use a safer value as the default maximum, rather than letting it be unbound to whatever the executing machine reports.

With this change, a power user can still configure a larger number of max workers if it is desirable and choose the upper limit themselves.

I do not have any specific data on the number of workers to cause this error to start cropping up due to its non-deterministic nature, so 8 was chosen conservatively. 5 might be best to make the default behavior be only a single core.

@coltonb-arcadia
Copy link
Author

Closing this until confirmed this mitigates the issue.

Copy link

github-actions bot commented Mar 3, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Frequent intermittent connection failures
1 participant