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 28, 2022
1 parent b2b6eea commit 21da6ef
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/foreman.hiera/family/RedHat-8.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---
# EL8 only due to issues with older Apache event mpm on EL7. When EL7
# support is dropped, this should move to tuning/common.yaml
apache::mpm_module: 'event'

# EL8 doesn't have support for SSLv3 anymore and errors out on it. This
# overrides security.yaml
apache::mod::ssl::ssl_protocol:
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 21da6ef

Please sign in to comment.