Thanks - much appreciated. On Friday, November 26, 2021 at 9:11:10 PM UTC Graham Dumpleton wrote:
> See explanation in this blog post. > > http://blog.dscpl.com.au/2014/02/vertically-partitioning-python-web.html > > You only want one WSGIScriptAlias mount directive and use Location to > apply conditions on where traffic is directed. > > Also recommended to force use of main interpreter context in each daemon > process group by setting WSGIApplicationGroup to %{GLOBAL}. This avoids > issues with some Python packages that will not work in sub interpreters. > > Graham > > On 27 Nov 2021, at 2:40 am, Andy <[email protected]> wrote: > > Is it possible to partition traffic for a single Django site across > multiple processes i.e. use WSGIScriptAlias to point to the same WSGI > script but configure a subset of URLs to route to different processes? > > Apache virtual host configuration excerpt: > > WSGIApplicationGroup api > WSGIDaemonProcess api processes=2 display-name='%{GROUP}' > lang='en_US.UTF-8' locale='en_US.UTF-8' > WSGIScriptAlias /api <path>/wsgi.py process-group=api application-group=api > > WSGIApplicationGroup web > WSGIDaemonProcess web processes=5 display-name='%{GROUP}' > lang='en_US.UTF-8' locale='en_US.UTF-8' > WSGIScriptAlias / <path>/wsgi.py process-group=web application-group=web > > When configured like this /api traffic does appear to be picked up by the > correct process but fails Django URL resolution (and raises a 404). > > Quite possible that this is purely a Django issue, but just want to check > if this approach is feasible / advisable. > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/modwsgi/7907f10d-c39b-48ea-81b7-0a38a9125a21n%40googlegroups.com > > <https://groups.google.com/d/msgid/modwsgi/7907f10d-c39b-48ea-81b7-0a38a9125a21n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/901bf5a9-ea91-4126-b3e0-4c84de085fa8n%40googlegroups.com.
