Hello,
502 usually means the backend isn't running. After you finish the test, has the backend stopped running? Does it continue to throw 502s? If that is the case, I'm wildly guessing that processes might be growing and growing in memory and being eventually killed, but I don't really know. Do you have DEBUG = False? Does uwsgi write something in its log? Does the system write something in the syslog?
Regards,
Antonis
Antonis Christofides http://djangodeployment.com
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAM-7rO1u-ih5pd9b2AEEDLBJRL7DUvhVDs9hfZjpyGH_fHKJbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAM-7rO1u-ih5pd9b2AEEDLBJRL7DUvhVDs9hfZjpyGH_fHKJbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7624c177-e769-5fd6-496e-5ab07a927783%40djangodeployment.com.
For more options, visit https://groups.google.com/d/optout.
Your logs contain this:
IOError: write error
However, more information is needed in order to understand what is going on. A simple "write error" on its own is insufficient—is it a hardware error? Too many open files? Out of disk space? Something else? If your system writes nothing else in /var/log/syslog at the time the error occurs, it may be the fault of uwsgi that it doesn't show more information about the error. Try to increase error message verbosity, if there is an option to do that.
Incidentally, the reason I migrated from uwsgi to gunicorn a few years ago was that every once in a while I was having a different problem with uwsgi, which was taking me hours to solve, largely because of insufficient documentation. After I switched to gunicorn I never looked back.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAM-7rO31bj6O8L_s-hoVn13zV11UFuV9Wtd4EbJBS9EcFz%3DDtg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAM-7rO31bj6O8L_s-hoVn13zV11UFuV9Wtd4EbJBS9EcFz%3DDtg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/95dd8c2a-a68b-e5b4-d01d-6f7047202cc1%40djangodeployment.com.
350 concurrent requests for a single machine is really much. If your app is very fast (e.g. by caching stuff a lot) it might be possible, but again it might require some tuning (for example, you could increase the gunicorn workers, but you need to be monitoring RAM consumption).
Do you really need 350 concurrent requests? Do you have 100
thousand users?
Antonis Christofides http://djangodeployment.com
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAM-7rO2mSDyAh%2Bfivw3V57NiNXsY389FaMeugsup5JmH_ptpFQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAM-7rO2mSDyAh%2Bfivw3V57NiNXsY389FaMeugsup5JmH_ptpFQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9284e7b8-4b8a-ec46-86a0-0c111bea8878%40djangodeployment.com.
Hi,
No, the first message says it works with 6k requests, of which
350 are concurrent, and doesn't work with 10k requests, of which
350 are concurrent. I merely made some back-of-the-napkin
calculation with some very crude assumptions that 350 concurrent
requests means you have a total of 100k users.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEuG%2BTb8rOOzRjWF2v_yhoAUCBz6%2BAok_3K7oKqac4A3dRxDog%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAM-7rO1u-ih5pd9b2AEEDLBJRL7DUvhVDs9hfZjpyGH_fHKJbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7624c177-e769-5fd6-496e-5ab07a927783%40djangodeployment.com.
For more options, visit https://groups.google.com/d/optout.
--
att.Carlos Rocha
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAM-7rO31bj6O8L_s-hoVn13zV11UFuV9Wtd4EbJBS9EcFz%3DDtg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/95dd8c2a-a68b-e5b4-d01d-6f7047202cc1%40djangodeployment.com.
--att.Carlos Rocha