UPD: tuned httpd mpm settings.

This commit is contained in:
2019-04-14 14:55:42 +02:00
parent 42621ace3a
commit 452a020368
3 changed files with 14 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ RUN chown apache: /etc/httpd/run && \
/etc/httpd/conf/httpd.conf
COPY container-filesystem/ /
COPY $APPLICATION_SRC /srv/${APPLICATION_NAME}/src/${APPLICATION_NAME}
COPY ${APPLICATION_SRC} /srv/${APPLICATION_NAME}/src/${APPLICATION_NAME}
RUN ln -s ${APPLICATION_NAME} /srv/application && \
/setup-application.sh /srv/${APPLICATION_NAME} \

View File

@@ -1,3 +1,5 @@
# /etc/httpd/conf.d/application.conf
WSGIDaemonProcess wsgi-daemon display-name=wsgi-daemon python-home=/srv/application/python python-path=/srv/application/django
Alias /static/ "/srv/application/django/var/www/static/"

View File

@@ -0,0 +1,11 @@
# /etc/httpd/conf.d/mpm.conf
<IfModule mpm_event_module>
ServerLimit 8
ThreadLimit 32
ThreadsPerChild 16
MaxRequestWorkers 64
StartServers 2
MinSpareThreads 16
MaxSpareThreads 48
MaxConnectionsPerChild 2000
</IfModule>