This is very timely and relevant to a proposal I am currently working on.<div><br></div><div>Everything you have proposed seems sensible and benefitial to me. Since you've breached the subject, I'm going to attempt to describe what I have been wishing for. I was literally in the middle of writing it up when I saw this email thread, so here it is, slightly pre-mature:</div><div><br></div><div>I'd like to extend the functionality of the wikimedia-debug header, or perhaps augment it with a similar but slightly different capability. I think it would be very useful to have a way to, in addition to cache-busting, also force the request to be served from the pre-production branch rather that the current production branch. This way changes on the prod+1 branch can be conveniently tested on any wiki (not just testwiki) while disregarding the version specified in wikiversions.</div><div><br></div><div>The X-Wikimedia-Debug header seems like the ideal way to implement this. If the header accepted multiple values then the new behavior could easily be implemented in The multiversion branch selection code, without affecting the previous behavior.</div><div><br></div><div>I'd like to hear feedback on this further proposal. I intended to propose this along with several related changes to multiversion and other relevant technical debt repayment / code cleanup, however, this one probably stands on it's own, especially in the context of what Ori has proposed.</div><div><br></div><div>On Monday, January 25, 2016, Alex Monk <<a href="mailto:alex@wikimedia.org">alex@wikimedia.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Trying again from a different address<br><div class="gmail_extra"><br><div class="gmail_quote">On 26 January 2016 at 01:04, Alex Monk <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','amonk@wikimedia.org');" target="_blank">amonk@wikimedia.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Forwarding to wikitech-l since this is not really specific to staff, but all shell users.<br><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On 25 January 2016 at 20:39, Ori Livneh <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','ori@wikimedia.org');" target="_blank">ori@wikimedia.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">The X-Wikimedia-Debug header, for those of you who don't know, is an HTTP request header that you can set on your requests (either manually, or by using the Chrome[1] or Firefox[2] extensions). Requests bearing this header are always treated as cache misses by Varnish, and they are always routed to the same backend, mw1017.<div><br></div><div>In addition to handling X-Wikimedia-Debug requests, mw1017 is also configured as the sole application server backend for all requests to <a href="http://test.wikimedia.org" target="_blank">test.wikimedia.org</a>. This was set up before X-Wikimedia-Debug existed, and as a debugging tool it is (IMO) inferior to it, because X-Wikimedia-Debug allows you to test code changes against any production wiki.</div><div><br></div><div>What I've seen happen before is developers (like me -- I've done this before) live-hack code on mw1017 to debug some issue that is only showing up in production. This can cause testwiki to break, which annoys developers and editors who use testwiki for testing things like Lua modules or editing functionality on mobile apps.</div><div><br></div><div>To reduce contention for mw1017, I propose that we do the following:</div><div><br></div><div>1) Keep testwiki, but don't special-case it in Varnish</div><div>(in other words, have testwiki requests go to the standard app server pool)</div><div><br></div><div>2) Reserve mw1017 exclusively for X-Wikimedia-Debug requests</div><div><br></div><div>3) Add a service alias (appservers-debug.svc.eqiad.wmnet) for mw1017 and update the varnish backend config to use that, rather than hard-code mw1017 in VCL.</div><div><br></div><div>Thoughts?</div><div><br></div><div> [1]: <a href="https://chrome.google.com/webstore/detail/wikimediadebug/binmakecefompkjggiklgjenddjoifbb?hl=en-US" target="_blank">https://chrome.google.com/webstore/detail/wikimediadebug/binmakecefompkjggiklgjenddjoifbb?hl=en-US</a></div><div> [2]: <a href="https://addons.mozilla.org/en-US/firefox/addon/wikimedia-debug-header/" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/wikimedia-debug-header/</a></div><div><br></div></div>
<br></div></div><span>_______________________________________________<br>
Engineering mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','Engineering@lists.wikimedia.org');" target="_blank">Engineering@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/engineering" rel="noreferrer" target="_blank">https://lists.wikimedia.org/mailman/listinfo/engineering</a><br>
<br></span></blockquote></div><span><font color="#888888"><div><br></div>-- <br><div><div dir="ltr"><div>Alex Monk</div><div>VisualEditor/Editing team</div><div><a href="https://wikimediafoundation.org/wiki/User:Krenair_(WMF)" target="_blank">https://wikimediafoundation.org/wiki/User:Krenair_(WMF)</a></div></div></div>
</font></span></div></div>
</blockquote></div><br></div></div>
</blockquote></div>