Browse code

double the screen sleep timeout

HP Cloud 1.1 is quite slow per core. So much so that grenade is
often failing to start services because bash in a screen session
isn't ready in 1.5s. Double this to 3s to try to decrease failures
in the gate.

We should instead do this via some readiness check to decrease
races.

(cherry picked from commit 43d8f1cdddee5ed20dfef267dc59f7c4805d3a75)

Conflicts:
functions-common

Change-Id: I2b066a687916742e966190f00b5b06a795d4a014

Sean Dague authored on 2014/06/16 22:39:19
Showing 1 changed files
... ...
@@ -1113,7 +1113,7 @@ function screen_it {
1113 1113
             # sleep to allow bash to be ready to be send the command - we are
1114 1114
             # creating a new window in screen and then sends characters, so if
1115 1115
             # bash isn't running by the time we send the command, nothing happens
1116
-            sleep 1.5
1116
+            sleep 3
1117 1117
 
1118 1118
             NL=`echo -ne '\015'`
1119 1119
             # This fun command does the following: