koji_hub: and back to prefork

worker ate up db connections, so back to prefork.
But increase max to 900 (from default 250) t0 hopefully avoid the orig issue.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2019-12-29 19:32:32 +00:00 committed by Pierre-Yves Chibon
parent 539ecf0387
commit bf7cdb0849
2 changed files with 6 additions and 8 deletions

View file

@ -3,13 +3,13 @@
# prefork MPM: Implements a non-threaded, pre-forking web server # prefork MPM: Implements a non-threaded, pre-forking web server
# See: http://httpd.apache.org/docs/2.4/mod/prefork.html # See: http://httpd.apache.org/docs/2.4/mod/prefork.html
#LoadModule mpm_prefork_module modules/mod_mpm_prefork.so LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
# worker MPM: Multi-Processing Module implementing a hybrid # worker MPM: Multi-Processing Module implementing a hybrid
# multi-threaded multi-process web server # multi-threaded multi-process web server
# See: http://httpd.apache.org/docs/2.4/mod/worker.html # See: http://httpd.apache.org/docs/2.4/mod/worker.html
# #
LoadModule mpm_worker_module modules/mod_mpm_worker.so #LoadModule mpm_worker_module modules/mod_mpm_worker.so
# event MPM: A variant of the worker MPM with the goal of consuming # event MPM: A variant of the worker MPM with the goal of consuming
# threads only for connections with active processing # threads only for connections with active processing

View file

@ -2,12 +2,10 @@ RewriteEngine On
RewriteRule ^/$ /koji/ [R,L] RewriteRule ^/$ /koji/ [R,L]
KeepAlive On KeepAlive On
ServerLimit 35 StartServers 5
StartServers 50 MinSpareServers 5
MaxRequestWorkers 875 MaxSpareServers 10
MinSpareThreads 25 MaxRequestWorkers 900
MaxSpareThreads 75
ThreadsPerChild 25
MaxConnectionsPerChild 1000 MaxConnectionsPerChild 1000
#We use wsgi by default #We use wsgi by default