Switch proxies to use the mpm event module instead of prefork.

This commit is contained in:
Kevin Fenzi 2015-10-09 15:34:17 +00:00
parent 2be1e05107
commit 17b4748e4e
3 changed files with 28 additions and 2 deletions

View file

@ -0,0 +1,18 @@
# Select the MPM module which should be used by uncommenting exactly
# one of the following LoadModule lines:
# prefork MPM: Implements a non-threaded, pre-forking web server
# See: http://httpd.apache.org/docs/2.4/mod/prefork.html
#LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
# worker MPM: Multi-Processing Module implementing a hybrid
# multi-threaded multi-process web server
# See: http://httpd.apache.org/docs/2.4/mod/worker.html
#
#LoadModule mpm_worker_module modules/mod_mpm_worker.so
# event MPM: A variant of the worker MPM with the goal of consuming
# threads only for connections with active processing
# See: http://httpd.apache.org/docs/2.4/mod/event.html
#
LoadModule mpm_event_module modules/mod_mpm_event.so

View file

@ -31,6 +31,14 @@
- httpd
- httpd/proxy
- name: set the apache mpm to use event MPM
copy: src=00-mpm.conf dest=/etc/httpd/conf.modules.d/00-mpm.conf
notify:
- restart httpd
tags:
- httpd
- httpd/proxy
- name: Install libsemanage-python so we can manage selinux with python...
yum: name=libsemanage-python state=installed
tags:

View file

@ -106,8 +106,8 @@ KeepAliveTimeout 15
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
StartServers 150
MinSpareServers 50
MaxSpareServers 100
#MinSpareServers 50
#MaxSpareServers 100
ServerLimit {{ maxrequestworkers }}
MaxRequestWorkers {{ maxrequestworkers }}
MaxRequestsPerChild 10000