Page MenuHomePhabricator

Support X-Wikimedia-Debug header for services
Open, MediumPublic

Description

The MediaWiki core has support for a special X-Wikimedia-Debug header. It allows to select which particular backend servers will run the request, allowing to debug and test the code without deploying it everywhere or relying on luck that a certain request hit a certain backend. This is extremely useful and services need a similar thing.

As a bare minimum, the header should support service_name=server list that would allow to select a specific node to request whenever requesting RESTBase, Parsoid , Mobile-Content-Service or any other server. The header should be passed through on all the internal communications between the services, so that all request to a particular service ends up on a particular node. Should also support selecting a MediaWiki API node.

Event Timeline

Legoktm renamed this task from Support x-mediawiki-debug header for services to Support X-Wikimedia-Debug header for services.Dec 13 2017, 9:48 PM
Legoktm updated the task description. (Show Details)
mobrovac edited projects, added Services (designing); removed Services (later).

@Pchelolo Would it be hard to include maps as well?

@Pchelolo Would it be hard to include maps as well?

I honestly don't quite know how to implement this yet, so including maps would probably as hard as everything else.