Open

About User

Questions Asked: 2

Answers Given: 2

0
  • Open

Configuring apache to force a process (pid) per user?

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)?

0 Likes 0 Favourites 0 Followers 0 Comments
Answers(0)