Skip to content

Commit

Permalink
Fixes #33277: Change Puma default workers to 1.5 * CPU, max threads to 5
Browse files Browse the repository at this point in the history
The Puma documentation recommends for MRI based installations to
start with number of CPUs times 1.5 and defaults to 5 on Ruby MRI.
The previous maximum threads of 16 was based on an incorrect reading
of the Puma documentation and is only the default on non-MRI Ruby.
  • Loading branch information
ehelms committed Aug 17, 2021
1 parent 172a16d commit 1c6fd83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
$foreman_service_ensure = 'running'
$foreman_service_enable = true
$foreman_service_puma_threads_min = undef
$foreman_service_puma_threads_max = 16
$foreman_service_puma_workers = 2
$foreman_service_puma_threads_max = 5
$foreman_service_puma_workers = $facts['processors']['count']) * 1.5

# Define job processing service properties
$dynflow_manage_services = true
Expand Down

0 comments on commit 1c6fd83

Please sign in to comment.