0👍
From: http://engineering.hackerearth.com/2013/11/21/scaling-python-django-application-apache-mod_wsgi/
Tweaking mpm-worker configuration
<IfModule mpm_worker_module>
StartServers 2
MinSpareThreads 10
MaxSpareThreads 25
ThreadLimit 25
ThreadsPerChild 25
MaxClients 75
MaxRequestsPerChild 0
</IfModule>
This configuration enforces following rules:
Initial number of server processes started is two.
Maximum number of clients is restricted to 75.
Each process has 25 threads.
Maximum number of processes that could be created is 75/25 = 3.
Our process size is ~220 MB (very very fat, I know!), so that means we only need ~660 MB in the worst case.
- [Django]-Django – queryset with extra method returns empty, count() says otherwise
- [Django]-Successful Django Deploy Through AWS Elastic Beanstalk, But Getting 500 ERROR
- [Django]-How to call multiple views on one url in pinax
- [Django]-Django static templatetag not displaying SVG
0👍
We found that adjusting mod_wsgi listen-backlog
and increasing net.core.somaxconn
(at least on Ubuntu) seems to eliminate the listener backlog limit was exceeded
issues. Of course, this highly depends on level of traffic and users.
- [Django]-Django Mongodb Engine : Authentication, Sessions ans User Model
- [Django]-Manage.py doesn't pass the argument to the command
- [Django]-Django AllAuth gives SSLError
Source:stackexchange.com