Rush has submitted this change and it was merged. 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(-) Approvals: Rush: Looks good to me, approved jenkins-bot: Verified 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: merged Gerrit-Change-Id: I2d04a60e2e1a9762cdd5af84afd3f16e25d3486b Gerrit-PatchSet: 2 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Rush <r...@wikimedia.org> Gerrit-Reviewer: Rush <r...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits