![]() Supplied the daemon processes will be run as the same group that Apache Group that the daemon processes should be run as. group=name | group=#gidĭefines the UNIX group name or numeric group gid of the primary Group as the root user due to the security risk of running a webĪpplication as root. Will be run as the user that Apache was started as.Īlso be aware that mod_wsgi will not allow you to run a daemon process User, in which case no matter what the settings, the daemon processes Note that this option is ignored if Apache wasn’t started as the root Not necessary to set this to the Apache user yourself. Run child processes, as defined by the `User`_ directive, and it is The daemon processes will be run as the same user that Apache would Started from system init scripts, would usually be the system rootĭefines the UNIX user name or numeric user uid of the user that Otherwise the current workingĭirectory of Apache when started will be used, which if Apache is being Process is configured to run as using the user option to the Will be set to be the home directory of the user that the daemon If this option is not defined the initial current working directory ![]() Initial current working directory of the daemon processes within the Other programs which can display this valueĭefines an absolute path of a directory which should be used as the Of Solaris UNIX the /usr/bin/ps program doesn’t work, but Typically itĪlso requires a ps program with BSD heritage. This feature may not work as described on all platforms. Note that only as many characters of the supplied value can be displayedĪs were originally taken up by argv0 of the executing process.Īnything in excess of this will be truncated. Name will be (wsgi:group) where group is replaced with the name Into the main application group specified by % then the You will need to use WSGIImportScript to pre-load a Python script Intended for using a daemon process to run a managed set of processes. If you set the number of threads to 0 you will enable a special mode Of using at most 3 to 5 threads per process and using more processes. Any sort of increased value would only be appropriate Threads in each daemon process within the process group.ĭo not get carried away and set this to a very large number in theīelief that it will somehow magically enable you to handle many moreĬoncurrent users. ![]() If this option is not defined then the default will be to create 15 If you need toĮnsure that wsgi.multiprocess is False so that interactiveĭebuggers will work, simply do not specify the processes option andĪllow the default single daemon process to be created in the processĭefines the number of threads to be created to handle requests in each Same Apache instance, or separate Apache instances. Where some form of load balancing is used across process groups in the True whereas not providing the option at all will result in theĪttribute being set to be False. Note that if this option is defined as processes=1, then the WSGIĮnvironment attribute called wsgi.multiprocess will be set to be If not defined then only one process will be run in this Options which can be supplied to the WSGIDaemonProcess directive are: processes=numĭefines the number of daemon processes that should be started in this That is, it is not possible to use the same daemon process Needs to be used to delegate specific WSGI applications to execute withinĪlso note that the name of the daemon process group must be unique for the ![]() Using the WSGIDaemonProcess directive, the WSGIProcessGroupĭirective, or the process-group option of WSGIScriptAlias still Note that having denoted that daemon processes should be created by Run in the standard Apache child processes. Such as PHP or activities such as serving up static files continue to be WSGI applications assigned to that process group. When distinct daemon processes are enabled and used, the process isĭedicated to mod_wsgi and the only thing that the processes do is run the Which the Apache child processes would normally be run as. Root user, the daemon processes can be run as a user different to that The WSGIDaemonProcess directive can be used to specify that distinctĭaemon processes should be created to which the running of WSGIĪpplications can be delegated. Configure a distinct daemon process for running applications.
0 Comments
Leave a Reply. |