Merge "devstack: use $API_WORKERS to set the number of WSGI workers in Apache"

This commit is contained in:
Jenkins 2015-08-14 04:58:06 +00:00 committed by Gerrit Code Review
commit f58087eed0
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
Listen %PORT%
<VirtualHost *:%PORT%>
WSGIDaemonProcess aodh-api processes=2 threads=10 user=%USER% display-name=%{GROUP} %VIRTUALENV%
WSGIDaemonProcess aodh-api processes=%APIWORKERS% threads=10 user=%USER% display-name=%{GROUP} %VIRTUALENV%
WSGIProcessGroup aodh-api
WSGIScriptAlias / %WSGIAPP%
WSGIApplicationGroup %{GLOBAL}

View File

@ -89,6 +89,7 @@ function _aodh_config_apache_wsgi {
s|%APACHE_NAME%|$APACHE_NAME|g;
s|%WSGIAPP%|$AODH_WSGI_DIR/app|g;
s|%USER%|$STACK_USER|g;
s|%APIWORKERS%|$API_WORKERS|g;
s|%VIRTUALENV%|$venv_path|g
" -i $aodh_apache_conf
}