Alexandros Kosiaris has uploaded a new change for review.

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

Change subject: puppetmaster: Ping before sending requests to backend
......................................................................

puppetmaster: Ping before sending requests to backend

ping argument will actually send a 100-Continue request to the backend
server. This should fix a set of errors where the backend will close the
connection while the frontend will have sent the request already,
resulting to the frontend issuing a 502 to the agent

Change-Id: I251c259b1336e650061abd5959eec292cea57e67
---
M modules/puppetmaster/templates/web-frontend.conf.erb
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/57/311457/1

diff --git a/modules/puppetmaster/templates/web-frontend.conf.erb 
b/modules/puppetmaster/templates/web-frontend.conf.erb
index 71e27f8..9364ed3 100644
--- a/modules/puppetmaster/templates/web-frontend.conf.erb
+++ b/modules/puppetmaster/templates/web-frontend.conf.erb
@@ -38,7 +38,7 @@
     <Proxy balancer://mycluster>
       <%- @workers.each do |workerhash| -%>
       <%- unless workerhash['offline'] -%>
-        BalancerMember https://<%= workerhash['worker'] %>:8141 
connectiontimeout=1 retry=500 timeout=900 <%- if workerhash['loadfactor'] 
-%>loadfactor=<%= workerhash['loadfactor'] %><%- end %>
+        BalancerMember https://<%= workerhash['worker'] %>:8141 ping=1 
connectiontimeout=1 retry=500 timeout=900 <%- if workerhash['loadfactor'] 
-%>loadfactor=<%= workerhash['loadfactor'] %><%- end %>
       <%- end -%>
       <%- end -%>
       <IfVersion >= 2.4>

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I251c259b1336e650061abd5959eec292cea57e67
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alexandros Kosiaris <akosia...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to