asked by Jesper Audibert in Literature near The Victor Chang Cardiac Research Institute, Darlinghurst NSW, Australia on 28 May,2018
I configured a web site using django WSGI and Apache. Since several users can launch a request (lasting 30s) at the same time, I configured WSGI with multiple processes so that a user won't wait for other users requests to end by specifying processes=10
:
WSGIDeamonProcess website processes=10 threads=1
WSGIProcessGroup website
WSGIApplicationGroup %{GLOBAL}
WSGIScriptAlias / /path/to/wsgi.py
It works well, but when the user makes a first request, he has to make a second one; both requests are launched in two different processes (pid), but I need them to be executed in the same process (because of a global variable that they share). Therefore, I thought about making all request of that user in the same process to solve this. Is there an Apache configuration option do to this: make all requests of a user in the same process (or sub-interpreter)?
Choose a test user to login and take a site tour.
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.