Вопрос

I have been suffered with this issue for days. I am running a django application on a AWS EC2 server (8 core CPU), configure with Nginx+uWSGI, uwsgi is using 8 socket files.

I wrote two views, view A returns HttpResponse('ok') and view B loads and returns a template file (no context rendering).

When I performed 50 concurrent requests on the the view A. The view B works just fine, however if I run the load testing against the view B (template rendering), the server becomes extremely slow. Any ideas?

Это было полезно?

Решение

Anyway, I figured out that's a context processor I added to Django caused this issue.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top