Browse Source

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)
tags/13.0.4^0
Dmitry Tantsur 1 month ago
parent
commit
555494870c
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      devstack/lib/ironic

+ 3
- 0
devstack/lib/ironic View File

@@ -927,6 +927,9 @@ function install_redfish {
cmd+=" --bind ${HOST_IP}:${IRONIC_REDFISH_EMULATOR_PORT}"
cmd+=" --env FLASK_DEBUG=1"
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"



Loading…
Cancel
Save