summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Tantsur <dtantsur@protonmail.com>2020-06-06 12:09:44 +0200
committerDmitry Tantsur <dtantsur@protonmail.com>2020-06-09 12:34:23 +0000
commit555494870cb2ac8e7874427720534394e20c281b (patch)
treef1058b8b200b32b8feee16b5f7888ad68a4f6f9c
parent911bc51a103b98621a803a84b00a96c09a610ac8 (diff)
downloadironic-13.0.4.tar.gz
devstack: increase concurrency and worker timeout for sushy-tools13.0.4
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 7a455a3ff3af8a1542e32578f4f5a1c65d021c3d)
-rw-r--r--devstack/lib/ironic3
1 files changed, 3 insertions, 0 deletions
diff --git a/devstack/lib/ironic b/devstack/lib/ironic
index 5b2d36c61..69bfd093c 100644
--- a/devstack/lib/ironic
+++ b/devstack/lib/ironic
@@ -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"