devstack: use $API_WORKERS to set the number of WSGI workers in Apache
Change-Id: I037bf5507b9944d6491b44069f7966ca70e773eb
This commit is contained in:
parent
12ca732740
commit
6f47485521
@ -1,7 +1,7 @@
|
|||||||
Listen %PORT%
|
Listen %PORT%
|
||||||
|
|
||||||
<VirtualHost *:%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
|
WSGIProcessGroup aodh-api
|
||||||
WSGIScriptAlias / %WSGIAPP%
|
WSGIScriptAlias / %WSGIAPP%
|
||||||
WSGIApplicationGroup %{GLOBAL}
|
WSGIApplicationGroup %{GLOBAL}
|
||||||
|
@ -89,6 +89,7 @@ function _aodh_config_apache_wsgi {
|
|||||||
s|%APACHE_NAME%|$APACHE_NAME|g;
|
s|%APACHE_NAME%|$APACHE_NAME|g;
|
||||||
s|%WSGIAPP%|$AODH_WSGI_DIR/app|g;
|
s|%WSGIAPP%|$AODH_WSGI_DIR/app|g;
|
||||||
s|%USER%|$STACK_USER|g;
|
s|%USER%|$STACK_USER|g;
|
||||||
|
s|%APIWORKERS%|$API_WORKERS|g;
|
||||||
s|%VIRTUALENV%|$venv_path|g
|
s|%VIRTUALENV%|$venv_path|g
|
||||||
" -i $aodh_apache_conf
|
" -i $aodh_apache_conf
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user