Browse code

Set swift timeouts higher

Devstack is commonly run in a small slow environment, so bump the
timeouts up.

node_timeout is how long between read operations a node takes to
respond to the proxy server
conn_timeout is all about how long it takes a connect() system call to
return

Change-Id: Ib437466a3fc9274b8aa49b19e4fe7fa26f553419
Co-Authored-By: Peter Portante <peter.portante@redhat.com>
Related-Bug: #1252514

Joe Gordon authored on 2013/11/20 14:06:29
Showing 1 changed files
... ...
@@ -266,6 +266,15 @@ function configure_swift() {
266 266
     iniuncomment ${SWIFT_CONFIG_PROXY_SERVER} DEFAULT bind_port
267 267
     iniset ${SWIFT_CONFIG_PROXY_SERVER} DEFAULT bind_port ${SWIFT_DEFAULT_BIND_PORT:-8080}
268 268
 
269
+    # Devstack is commonly run in a small slow environment, so bump the
270
+    # timeouts up.
271
+    # node_timeout is how long between read operations a node takes to
272
+    # respond to the proxy server
273
+    # conn_timeout is all about how long it takes a connect() system call to
274
+    # return
275
+    iniset ${SWIFT_CONFIG_PROXY_SERVER} app:proxy-server node_timeout 120
276
+    iniset ${SWIFT_CONFIG_PROXY_SERVER} app:proxy-server conn_timeout 20
277
+
269 278
     # Configure Ceilometer
270 279
     if is_service_enabled ceilometer; then
271 280
         iniset ${SWIFT_CONFIG_PROXY_SERVER} filter:ceilometer use "egg:ceilometer#swift"