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.