StartServers 50
ServerLimit 200
ThreadsPerChild 1
ThreadLimit 1
MaxRequestWorkers 200
MaxConnectionsPerChild 10000
WSGIApplicationGroup %{GLOBAL}
WSGIDaemonProcess process processes=75 threads=1
Is it enough? Or can it handle only 75 concurrent requests? I don't know how to synchronize apache and mod_wsgi settings.
--
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 modwsgi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/bce72a22-5047-4d4d-a7cb-1657672b4d3ao%40googlegroups.com.
StartServers 100
ServerLimit 500
ThreadsPerChild 1
ThreadLimit 1
MaxRequestWorkers 500
MaxConnectionsPerChild 10000
WSGIApplicationGroup %{GLOBAL}
WSGIDaemonProcess django_app processes=75 threads=1 python-path='...' maximum-requests=10000 request-timeout=20
WSGIProcessGroup django_app
WSGIRestrictEmbedded On
WSGILazyInitialization On
What sort of application are you running?What is your average response times?Do you have long running requests, if yes, how long?What Apache MPM are you actually using?My initial impression is that is a quite poor configuration which is only going to chew up huge amounts of memory for no good reason, but I don't know your application requirements.
Also, are you even setting WSGIProcessGroup? If it isn't set it makes the whole daemon process configuration moot as it isn't even being used.
On 10 Aug 2020, at 7:24 pm, Paul Royik <distan...@gmail.com> wrote:
StartServers 50
ServerLimit 200
ThreadsPerChild 1
ThreadLimit 1
MaxRequestWorkers 200
MaxConnectionsPerChild 10000
WSGIApplicationGroup %{GLOBAL}
WSGIDaemonProcess process processes=75 threads=1Is it enough? Or can it handle only 75 concurrent requests? I don't know how to synchronize apache and mod_wsgi settings.--
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 mod...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/df05d905-b28c-42ce-bc46-5b754e2ddcbeo%40googlegroups.com.
Graham
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/df05d905-b28c-42ce-bc46-5b754e2ddcbeo%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/ce91f94b-9c57-464a-9dd2-79d7ad3184c6o%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/ce91f94b-9c57-464a-9dd2-79d7ad3184c6o%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/50d4fde5-aa0f-483e-8956-8534a485a2d5o%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/50d4fde5-aa0f-483e-8956-8534a485a2d5o%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/d3807684-557f-4ecb-81c5-754d404346bbo%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/d3807684-557f-4ecb-81c5-754d404346bbo%40googlegroups.com.
StartServers 1
ServerLimit 5
MaxRequestWorkers 125
MaxConnectionsPerChild 10000
WSGIDaemonProcess django_app processes=15 threads=5
As I understand this allows 75 concurrent requests in mod_wsgi and 125 requests in apache.
Is there any reason to make number of concurrent requests in apache higher than in mod_wsgi, i.e. 125 vs. 75? Possibly, set it 75 in both cases? I don't understand this point.
The second question. Things become really faster, but from time to time I got 502 error. It appears that apache is killed, because I need to start the server manually.
What are the possible reasons for this? RAM, too many requests? Can you give me some suggestions?
Thank you.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/60dd7682-f453-43c7-a672-862e8d8ce5aco%40googlegroups.com.
ServerRoot "/home/user/webapps/django_app/apache2" LoadModule alias_module modules/mod_alias.so LoadModule authz_core_module modules/mod_authz_core.so LoadModule dir_module modules/mod_dir.so LoadModule env_module modules/mod_env.so LoadModule log_config_module modules/mod_log_config.so LoadModule mime_module modules/mod_mime.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule setenvif_module modules/mod_setenvif.so LoadModule wsgi_module modules/mod_wsgi.so LoadModule unixd_module modules/mod_unixd.so LoadModule deflate_module modules/mod_deflate.so RewriteEngine on RewriteCond %{HTTP_REFERER} motherboard.vice.com [NC] RewriteRule .* - [F] LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined CustomLog /home/user/logs/user/access_django_app.log combined ErrorLog /home/user/logs/user/error_django_app.log Listen 18136 KeepAlive Off SetEnvIf X-Forwarded-SSL on HTTPS=1 MaxRequestWorkers 200 MaxConnectionsPerChild 10000 WSGIDaemonProcess django_app processes=15 threads=5 python-path=/home/user/webapps/django_app:/home/user/webapps/django_app/lib/python3.7 maximum-requests=10000 request-timeout=20 WSGIProcessGroup django_app WSGIRestrictEmbedded On WSGILazyInitialization On WSGIScriptAlias / /path_to_wsgi.py
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/60dd7682-f453-43c7-a672-862e8d8ce5aco%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/09d05cdb-3b84-4720-b8b1-4804a57b9d5co%40googlegroups.com.
Graham
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/09d05cdb-3b84-4720-b8b1-4804a57b9d5co%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/fe0e6129-dbfb-434a-acfd-13a8ed690437o%40googlegroups.com.