Hi All,

We are running uwsgi + nginx in production with following configuration for
Python (django) app.

master = true
processes = 20
max-requests = 1000

We see following issues in production:

1. nginx reports 502 and logs "unable to connect with upstream". Is there
way to log info from uwsgi to understand where (system call or networks)
workers are blocked?.

2.uwsgi logs - "uWSGI listen queue of socket 4 full !!! (201/200)". We have
increased from default 100 for listen queue to 200.

3. uwsgi logs - write(): Broken pipe [plugins/python/wsgi_subhandler.c line
235] - I suspect this is because nginx terminated the connection.

We running the app in 5 CPU and 1.7 GB box - would like to understand how
to tune max-requests and processes parameters?. We have 200 MB free in
general and CPU is at 30% on an avg.

Any tool or options to debug uWSGI to understand what is going on?.

-- 
Cheers
Vijay Rayapati
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to