Giuseppe Lavagetto has submitted this change and it was merged.

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(-)

Approvals:
  Giuseppe Lavagetto: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/puppetmaster/templates/web-frontend.conf.erb 
b/modules/puppetmaster/templates/web-frontend.conf.erb
index 4d3b063..5a53f63 100644
--- a/modules/puppetmaster/templates/web-frontend.conf.erb
+++ b/modules/puppetmaster/templates/web-frontend.conf.erb
@@ -40,7 +40,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: merged
Gerrit-Change-Id: I251c259b1336e650061abd5959eec292cea57e67
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alexandros Kosiaris <akosia...@wikimedia.org>
Gerrit-Reviewer: Giuseppe Lavagetto <glavage...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to