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

Auto set the number of max_worker_processes and max_parallel_workers #853

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

klention
Copy link
Contributor

@klention klention commented Dec 19, 2024

This PR introduces dynamic configuration for max_worker_processes and max_parallel_workers based on the number of vCPUs on the server:

  • max_worker_processes: set to the higher value between the number of vCPUs or the minimum value of 16.
  • max_parallel_workers: set to the higher value between half the number of vCPUs or the minimum value of 8.

This ensures optimal configuration for both small and large servers, adapting to the available resources while maintaining reasonable defaults.

@klention klention changed the title Auto se the number of max_worker_processes and max_parallel_workers based on system resources Auto set the number of max_worker_processes and max_parallel_workers based on system resources Dec 19, 2024
@vitabaks vitabaks changed the title Auto set the number of max_worker_processes and max_parallel_workers based on system resources Auto set the number of max_worker_processes and max_parallel_workers Dec 19, 2024
@vitabaks
Copy link
Owner

Thanks @klention

@vitabaks vitabaks merged commit 991608f into vitabaks:master Dec 19, 2024
15 checks passed
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