Ryan Lane has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/91809


Change subject: Reduce salt call timeout to 1s for fetch/checkout
......................................................................

Reduce salt call timeout to 1s for fetch/checkout

On a timeout salt will continue running a job in the background.
Since we're using a returner we don't need to wait for the salt
master to return any data back to the peer. By timing out as soon
as possible we can reduce the salt overhead of a deploy by 29
seconds per stage.

Change-Id: Ie1e5f503f90cf0cb898dcad87693ac322dad2324
---
M modules/deployment/files/runners/deploy.py
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/09/91809/1

diff --git a/modules/deployment/files/runners/deploy.py 
b/modules/deployment/files/runners/deploy.py
index f2582c2..cc1954d 100755
--- a/modules/deployment/files/runners/deploy.py
+++ b/modules/deployment/files/runners/deploy.py
@@ -32,7 +32,7 @@
     cmd = 'deploy.fetch'
     # comma in the tuple is a workaround for a bug in salt
     arg = (repo,)
-    client.cmd(grain, cmd, expr_form='grain', arg=arg, timeout=30,
+    client.cmd(grain, cmd, expr_form='grain', arg=arg, timeout=1,
                ret='deploy_redis')
     print "Fetch completed"
 
@@ -48,6 +48,6 @@
     client = salt.client.LocalClient(__opts__['conf_file'])
     cmd = 'deploy.checkout'
     arg = (repo, reset)
-    client.cmd(grain, cmd, expr_form='grain', arg=arg, timeout=30,
+    client.cmd(grain, cmd, expr_form='grain', arg=arg, timeout=1,
                ret='deploy_redis')
     print "Checkout completed"

-- 
To view, visit https://gerrit.wikimedia.org/r/91809
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie1e5f503f90cf0cb898dcad87693ac322dad2324
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ryan Lane <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to