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

Determine the number of background threads based on the number of CPU cores #4702

Closed
JinheLin opened this issue Apr 19, 2022 · 0 comments · Fixed by #4723
Closed

Determine the number of background threads based on the number of CPU cores #4702

JinheLin opened this issue Apr 19, 2022 · 0 comments · Fixed by #4723
Assignees
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@JinheLin
Copy link
Contributor

Enhancement

Currently, the default thread number of a background thread pool is 16. And there are two background thread pools for different purposes, so the total number of background threads is 32.

This is not suitable for all scenarios, especially the cloud environment since the number of CPUs per instance is small (usually 16 vCPU per instance).

I think setting the default thread number of a background thread pool to a quarter of the number of CPUs is enough.

  • Configuration's name profiles.default.background_pool_size .
@JinheLin JinheLin added the type/enhancement The issue or PR belongs to an enhancement. label Apr 19, 2022
@JinheLin JinheLin assigned JinheLin and Lloyd-Pottiger and unassigned JinheLin Apr 20, 2022
ti-chi-bot pushed a commit that referenced this issue Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants