Skip to content

Commit

Permalink
Fixes #20889 - Use event mpm module with Apache
Browse files Browse the repository at this point in the history
  • Loading branch information
wbclark committed Apr 29, 2022
1 parent b2b6eea commit bf4ef4f
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/foreman.hiera/common.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
apache::default_vhost: false
apache::default_mods: false
apache::mpm_module: 'event'

dhcp::config_comment: |
READ: This file was written the foreman-installer and not by the Foreman
Expand Down
2 changes: 2 additions & 0 deletions config/foreman.hiera/family/RedHat-7.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
apache::mpm_module: 'prefork'

redis::globals::scl: rh-redis5

postgresql::globals::version: '12'
Expand Down
5 changes: 5 additions & 0 deletions config/foreman.hiera/tuning/common.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
apache::mod::event::startservers: 2
apache::mod::event::minsparethreads: 16
apache::mod::event::maxsparethreads: 32
apache::mod::event::threadsperchild: 16

lookup_options:
postgresql::server::config_entries:
merge: hash
Expand Down
4 changes: 4 additions & 0 deletions config/foreman.hiera/tuning/sizes/extra-extra-large.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---
apache::mod::event::serverlimit: 64
apache::mod::event::maxrequestworkers: 1024
apache::mod::event::maxrequestsperchild: 4000

apache::mod::prefork::serverlimit: 1024
apache::mod::prefork::maxclients: 1024
apache::mod::prefork::maxrequestsperchild: 4000
Expand Down
4 changes: 4 additions & 0 deletions config/foreman.hiera/tuning/sizes/extra-large.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---
apache::mod::event::serverlimit: 64
apache::mod::event::maxrequestworkers: 1024
apache::mod::event::maxrequestsperchild: 4000

apache::mod::prefork::serverlimit: 1024
apache::mod::prefork::maxclients: 1024
apache::mod::prefork::maxrequestsperchild: 4000
Expand Down
4 changes: 4 additions & 0 deletions config/foreman.hiera/tuning/sizes/large.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---
apache::mod::event::serverlimit: 64
apache::mod::event::maxrequestworkers: 1024
apache::mod::event::maxrequestsperchild: 4000

apache::mod::prefork::serverlimit: 1024
apache::mod::prefork::maxclients: 1024
apache::mod::prefork::maxrequestsperchild: 4000
Expand Down
4 changes: 4 additions & 0 deletions config/foreman.hiera/tuning/sizes/medium.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---
apache::mod::event::serverlimit: 64
apache::mod::event::maxrequestworkers: 1024
apache::mod::event::maxrequestsperchild: 4000

apache::mod::prefork::serverlimit: 1024
apache::mod::prefork::maxclients: 1024
apache::mod::prefork::maxrequestsperchild: 4000
Expand Down

0 comments on commit bf4ef4f

Please sign in to comment.