UPD: tuned httpd mpm settings.
This commit is contained in:
@@ -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} \
|
||||
|
||||
@@ -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/"
|
||||
|
||||
11
container-filesystem/etc/httpd/conf.d/mpm.conf
Normal file
11
container-filesystem/etc/httpd/conf.d/mpm.conf
Normal 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>
|
||||
Reference in New Issue
Block a user