Hi,
I would like to access the uWSGI stats API from within Django by
creating a custom WSGI middleware.
Could it be possible to compute the number of requests currently being
used by uWSGI workers in Python/Django ?
Ideally, i could then retrieve the active connections in use in a
standard Django view:
def someview(request):
# retrieve the number of active requests (connections)
connections = request.environ['uwsgi.requests']
What do you think?
Etienne
--
Etienne Robillard
tkad...@yandex.com
https://www.isotopesoftware.ca/
--
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/849152fb-01ba-e59f-2022-eb02a4ffceee%40yandex.com.
For more options, visit https://groups.google.com/d/optout.