kopia lustrzana https://github.com/piku/piku
Increase uWSGI limits
The previous defaults we set very much in favor of low resource consumption, but could easily lead to rejecting requests with 502 errors even under moderate load. The new defaults allow two worker processes and queuing up to 50 requests. Closes https://github.com/piku/piku/issues/393pull/402/head
rodzic
c1c08ca26c
commit
2ebcd61f36
4
piku.py
4
piku.py
|
@ -1146,8 +1146,8 @@ def spawn_worker(app, kind, command, env, ordinal=1):
|
||||||
('master', 'true'),
|
('master', 'true'),
|
||||||
('project', app),
|
('project', app),
|
||||||
('max-requests', env.get('UWSGI_MAX_REQUESTS', '1024')),
|
('max-requests', env.get('UWSGI_MAX_REQUESTS', '1024')),
|
||||||
('listen', env.get('UWSGI_LISTEN', '16')),
|
('listen', env.get('UWSGI_LISTEN', '50')),
|
||||||
('processes', env.get('UWSGI_PROCESSES', '1')),
|
('processes', env.get('UWSGI_PROCESSES', '2')),
|
||||||
('procname-prefix', '{app:s}:{kind:s}:'.format(**locals())),
|
('procname-prefix', '{app:s}:{kind:s}:'.format(**locals())),
|
||||||
('enable-threads', env.get('UWSGI_ENABLE_THREADS', 'true').lower()),
|
('enable-threads', env.get('UWSGI_ENABLE_THREADS', 'true').lower()),
|
||||||
('log-x-forwarded-for', env.get('UWSGI_LOG_X_FORWARDED_FOR', 'false').lower()),
|
('log-x-forwarded-for', env.get('UWSGI_LOG_X_FORWARDED_FOR', 'false').lower()),
|
||||||
|
|
Ładowanie…
Reference in New Issue