devstack: increase concurrency and worker timeout for sushy-tools

Sometimes sushy-tools hits worker timeout in gunicorn when handing
a virtual media ISO, causing a request to be aborted and deployment
to fail. Increase the timeout from 30 to 90 seconds and add some
concurrency to ensure that more than one deployment can run.

Change-Id: I9e951aaaa13981602151bff3f2eebfa338113f6c
(cherry picked from commit 7a455a3ff3)
This commit is contained in:
Dmitry Tantsur 2020-06-06 12:09:44 +02:00
parent 911bc51a10
commit 555494870c
1 changed files with 3 additions and 0 deletions

View File

@ -927,6 +927,9 @@ function install_redfish {
cmd+=" --bind ${HOST_IP}:${IRONIC_REDFISH_EMULATOR_PORT}" cmd+=" --bind ${HOST_IP}:${IRONIC_REDFISH_EMULATOR_PORT}"
cmd+=" --env FLASK_DEBUG=1" cmd+=" --env FLASK_DEBUG=1"
cmd+=" --env SUSHY_EMULATOR_CONFIG=${IRONIC_REDFISH_EMULATOR_CONFIG}" cmd+=" --env SUSHY_EMULATOR_CONFIG=${IRONIC_REDFISH_EMULATOR_CONFIG}"
# NOTE(dtantsur): handling virtual media ISO can take time, so increase
# both concurrency and the worker timeout.
cmd+=" --workers 2 --threads 2 --timeout 90"
write_user_unit_file $IRONIC_REDFISH_EMULATOR_SYSTEMD_SERVICE "$cmd" "" "$STACK_USER" write_user_unit_file $IRONIC_REDFISH_EMULATOR_SYSTEMD_SERVICE "$cmd" "" "$STACK_USER"