WSGIProcessGroup
WSGIProcessGroup is a directive of the mod_wsgi Apache module used to assign a WSGI application to a specific daemon process group. The value of this directive names a daemon process group that is defined with WSGIDaemonProcess. When used in conjunction with daemon mode, WSGIProcessGroup ensures the WSGI application runs in the designated group, allowing signals, resource management, and termination to be applied to the group as a unit.
In practice, you define a daemon process group and then assign your application to it. For example:
WSGIDaemonProcess myapp processes=4 threads=2
WSGIScriptAlias /myapp /var/www/myapp.wsgi
This configuration causes the WSGI application at /myapp to run within the daemon processes created for the
WSGIProcessGroup is useful for isolating different applications, enabling separate memory and resource management, and facilitating signaling
- The group name must correspond to a defined WSGIDaemonProcess group.
- Changes typically require restarting Apache to take effect.