Added --preload when starting horizon

used --preload parameter when starting
horizon dashboard. This leads to
faster startup and lower memory
consumption.

It also fixes missing env variable
DJANGO_SETTINGS_MODULE in py3.

Story: 2008454
Task: 42856

Signed-off-by: Daniel Safta <daniel.safta@windriver.com>
Change-Id: I3c69311602eaaf9a78d101b5b0198e9582497100
This commit is contained in:
Daniel Safta 2021-07-19 09:29:49 +00:00
parent ab2f84da41
commit 8ef5cd2377

View File

@ -62,7 +62,7 @@ start()
echo -n "Starting $DESC..."
start-stop-daemon --start --quiet --background --pidfile ${PIDFILE} \
--make-pidfile --exec ${PYTHON} -- ${EXEC} --bind ${BIND}:${PORT} \
--make-pidfile --exec ${PYTHON} -- ${EXEC} --preload --bind ${BIND}:${PORT} \
--worker-class ${WORKER} --workers ${WORKERS} --timeout ${TIMEOUT} \
--log-syslog \
--config '/usr/share/openstack-dashboard/guni_config.py' \