Skip to content

Commit 41e6e12

Browse files
committed
Switch Centos/Fedora to Apache woker MPM
In trying to debug periodic gate instability of CentOS, I noticed that it is using the prefork mpm, while Ubuntu is defaulting to the multi-threaded worker mpm. One of the problems seems related to 502 proxy errors from the TLS proxy. We see out-of-sync timestamps in the centos TLS proxy access logs, which might be innocent behaviour based on the prefork model or indicate something else. Before going too deep down this rabbit-hole, I think it is better for consistency to use the same mpm model on all our platforms, and start debugging from there. Change-Id: I9881f2e7d51fdd9fc0f7fb3e37179aa53171b531
1 parent 2f98257 commit 41e6e12

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/apache

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ function install_apache_wsgi {
132132
elif is_fedora; then
133133
sudo rm -f /etc/httpd/conf.d/000-*
134134
install_package httpd mod_wsgi
135+
# For consistency with Ubuntu, switch to the worker mpm, as
136+
# the default is prefork
137+
sudo sed -i '/mod_mpm_prefork.so/s/^/#/g' /etc/httpd/conf.modules.d/00-mpm.conf
138+
sudo sed -i '/mod_mpm_worker.so/s/^#//g' /etc/httpd/conf.modules.d/00-mpm.conf
135139
elif is_suse; then
136140
install_package apache2 apache2-mod_wsgi
137141
else

0 commit comments

Comments
 (0)