Reduce Heat engine workers
It conforms with API_WORKERS default calculation to avoid too much processes consuming the memory. Change-Id: If2b483711668715047662a286cb0f0e3b52bbdac Signed-off-by: Cédric Ollivier <ollivier.cedric@gmail.com>
This commit is contained in:
parent
2ef9f4bf37
commit
a3be28bed7
@ -78,6 +78,7 @@ else
|
||||
fi
|
||||
HEAT_PLUGIN_DIR=${HEAT_PLUGIN_DIR:-$DATA_DIR/heat/plugins}
|
||||
ENABLE_HEAT_PLUGINS=${ENABLE_HEAT_PLUGINS:-}
|
||||
HEAT_ENGINE_WORKERS=${HEAT_ENGINE_WORKERS:=$(( ($(nproc)/4)<2 ? 2 : ($(nproc)/4) ))}
|
||||
|
||||
# Functions
|
||||
# ---------
|
||||
@ -135,6 +136,9 @@ function configure_heat {
|
||||
# logging
|
||||
iniset $HEAT_CONF DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL
|
||||
|
||||
# reduce Heat engine workers
|
||||
iniset $HEAT_CONF DEFAULT num_engine_workers "$HEAT_ENGINE_WORKERS"
|
||||
|
||||
local no_format="False"
|
||||
if [[ "$HEAT_USE_APACHE" == "True" && "$WSGI_MODE" != "uwsgi" ]]; then
|
||||
no_format="True"
|
||||
|
Loading…
x
Reference in New Issue
Block a user