Skip to content

Commit

Permalink
Externalized puma config values for easy tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
sthirugn committed Feb 10, 2020
1 parent cc039f6 commit dae357d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@
$foreman_service_ensure = 'running'
$foreman_service_enable = true
$foreman_service_port = 3000
$foreman_puma_threads_min = 0
$foreman_puma_threads_max = 16
$foreman_puma_workers = 4


# Define job processing service properties
$jobs_manage_service = true
Expand Down
6 changes: 3 additions & 3 deletions templates/foreman.service-overrides.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ Environment=FOREMAN_HOME=<%= scope['foreman::app_root'] %>
Environment=FOREMAN_BIND=<%= scope['foreman::foreman_service_bind'] %>
<% end -%>
Environment=FOREMAN_PORT=<%= scope['foreman::foreman_service_port'] %>
Environment=FOREMAN_PUMA_THREADS_MIN=0
Environment=FOREMAN_PUMA_THREADS_MAX=16
Environment=FOREMAN_PUMA_WORKERS=4
Environment=FOREMAN_PUMA_THREADS_MIN=<%= scope['foreman::foreman_puma_threads_min'] %>
Environment=FOREMAN_PUMA_THREADS_MAX=<%= scope['foreman::foreman_puma_threads_max'] %>
Environment=FOREMAN_PUMA_WORKERS=<%= scope['foreman::foreman_puma_workers'] %>

0 comments on commit dae357d

Please sign in to comment.