Rush has uploaded a new change for review.
https://gerrit.wikimedia.org/r/252436
Change subject: elastic: timeout on wmfelastic collector
......................................................................
elastic: timeout on wmfelastic collector
Bug: T117461
Change-Id: I2d04a60e2e1a9762cdd5af84afd3f16e25d3486b
---
M modules/elasticsearch/files/monitor/wmfelastic.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/36/252436/1
diff --git a/modules/elasticsearch/files/monitor/wmfelastic.py
b/modules/elasticsearch/files/monitor/wmfelastic.py
index 1c691d6..15aa081 100644
--- a/modules/elasticsearch/files/monitor/wmfelastic.py
+++ b/modules/elasticsearch/files/monitor/wmfelastic.py
@@ -154,7 +154,7 @@
url = 'http://%s:%i/%s' % (self.config['host'],
self.config['port'],
path)
- response = urllib2.urlopen(url)
+ response = urllib2.urlopen(url, timeout=3)
return json.load(response)
def is_master(self):
--
To view, visit https://gerrit.wikimedia.org/r/252436
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2d04a60e2e1a9762cdd5af84afd3f16e25d3486b
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Rush <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits