Set display name in apache processes

This change makes apache set process group name in the process name,
so when listing the processes the user can easily identify what's
running in each apache process. This is specially useful to debug
memory consumption or when a process consumming too much CPU.

Change-Id: I9787980052f451f452d3b8e5e51385ad5aa01e6a
This commit is contained in:
Felipe Reyes 2014-08-14 17:41:55 +02:00
parent 6db41b9716
commit 2c95fcd60c
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<VirtualHost *:80> <VirtualHost *:80>
WSGIScriptAlias / %HORIZON_DIR%/openstack_dashboard/wsgi/django.wsgi WSGIScriptAlias / %HORIZON_DIR%/openstack_dashboard/wsgi/django.wsgi
WSGIDaemonProcess horizon user=%USER% group=%GROUP% processes=3 threads=10 home=%HORIZON_DIR% WSGIDaemonProcess horizon user=%USER% group=%GROUP% processes=3 threads=10 home=%HORIZON_DIR% display-name=%{GROUP}
WSGIApplicationGroup %{GLOBAL} WSGIApplicationGroup %{GLOBAL}
SetEnv APACHE_RUN_USER %USER% SetEnv APACHE_RUN_USER %USER%

View File

@ -2,7 +2,7 @@ Listen %PUBLICPORT%
Listen %ADMINPORT% Listen %ADMINPORT%
<VirtualHost *:%PUBLICPORT%> <VirtualHost *:%PUBLICPORT%>
WSGIDaemonProcess keystone-public processes=5 threads=1 user=%USER% WSGIDaemonProcess keystone-public processes=5 threads=1 user=%USER% display-name=%{GROUP}
WSGIProcessGroup keystone-public WSGIProcessGroup keystone-public
WSGIScriptAlias / %PUBLICWSGI% WSGIScriptAlias / %PUBLICWSGI%
WSGIApplicationGroup %{GLOBAL} WSGIApplicationGroup %{GLOBAL}
@ -12,7 +12,7 @@ Listen %ADMINPORT%
</VirtualHost> </VirtualHost>
<VirtualHost *:%ADMINPORT%> <VirtualHost *:%ADMINPORT%>
WSGIDaemonProcess keystone-admin processes=5 threads=1 user=%USER% WSGIDaemonProcess keystone-admin processes=5 threads=1 user=%USER% display-name=%{GROUP}
WSGIProcessGroup keystone-admin WSGIProcessGroup keystone-admin
WSGIScriptAlias / %ADMINWSGI% WSGIScriptAlias / %ADMINWSGI%
WSGIApplicationGroup %{GLOBAL} WSGIApplicationGroup %{GLOBAL}