Hi,
I am unable to find the correct doc about the problem I have and I hope
you'll forgive my naivety. I'm running a django app using mod_wsgi with
mpm_event.
The env is: Server Version: Apache/2.4.25 (Debian) OpenSSL/1.0.2r
mod_wsgi/4.6.4 Python/3.5
Here are the relevant bits of the Apache VirtualHost conf:
WSGIScriptAlias /
/opt/virtualenvs/server/lib/python3.5/site-packages/server/wsgi.py
WSGIDaemonProcess server listen-backlog=200 processes=16
threads=30 display-name=%{GROUP}
python-path=/opt/virtualenvs/server/lib/python3.5/site-packages
restart-interval=3600 graceful-timeout=10
WSGIApplicationGroup %{GLOBAL}
WSGIProcessGroup server
I have another Virtual host listening on port 443 with config:
WSGIScriptAlias /
/opt/virtualenvs/server/lib/python3.5/site-packages/tile_server/wsgi.py
WSGIProcessGroup server
the following is the mpm_event config:
ServerLimit 32
StartServers 3
MinSpareThreads 75
MaxSpareThreads 150
ThreadLimit 64
ThreadsPerChild 40
MaxRequestWorkers 500
MaxConnectionsPerChild 0
I'm having a hard time finding the relationship between the 'processes' and
'threads' of the WSGIDaemonProcess and the StartServers, ThreadsPerChild
and MaxRequestWorkers of the mpm_event config. I have checked some of the
videos I found on other threads (very interesting!) but was not able to
find the means to understand how to configure the 2 together. My issue is
that I seem not to have a high CPU usage on the host (it's a VM), using
cached data, while not being able to serve more than 60-70 requests per
second. I'm wondering why kind of knob I should turn to improve the
server's usage and thus the request rate.
Another issue I discovered this morning is the following:
[Thu Mar 28 08:50:53.568321 2019] [wsgi:error] [pid 21253:tid
140125284001536] (2)No such file or directory: [client
2a02:121f:21b:0:c6cd:4394:566a:12ea:33664] mod_wsgi (pid=21253): Unable to
connect to WSGI daemon process 'tile-elevation' on
'/var/run/apache2/wsgi.15888.0.1.sock' as user with uid=33.
Looks like the socket was rotated, but I cannot see why...
Thanks in advance for the assitance, and thanks for the great tool!
Cheers!
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.