Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Page MenuHomePhabricator

Replace usage of RESTbase parsoid endpoints
Open, In Progress, MediumPublic

Description

The Parsoid functionality in RESTbase has been ported into MediaWiki (in core, the Parsoid library, and the Parsoid Extension). Once the ParserCache for Parsoid output has been fully populated (T320534), the Parsoid endpoints in RESTbase should no longer be used.

There are the following cases to cover:

  1. The {domain}/v3/page/html endpoint used by internal services. Direct calls to RESTbase should be replaced by access via the service mesh, by assigning a service port for the restbase endpoints. This service port can then be made to point to the parsoid cluster of mediawiki application servers, where the requests are handled by the endpoints exposed by the Parsoid extension.
  2. The public /api/rest_v1/page/html endpoint used by external clients. This should be re-routed to the corresponding endpoints exposed by the Parsoid extension. This requires a config change to ATS, either specifically for this prefix, or for all /api/rest_v1/ to go through the API gateway, which can then forward the request to the MediaWiki application servers. see also T334238: Create deprecation plan for public parsoid endpoints and T344946: Create a mechanism for purging output from (parsoid) HTML endpoints from edge caches (without RESTbase).

We should also survey internal services for calls to Parsoid endpoints, and ensure that the above covers all their needs (T333536). They will also need to be changed to make use of the service mesh for accessing the parsoid endpoints.

Related Objects

StatusSubtypeAssignedTask
Resolveddaniel
StalledNone
In ProgressNone
OpenNone
In ProgressNone
Resolveddaniel
ResolvedNone
ResolvedNone
Resolved matmarex
ResolvedPRODUCTION ERRORdaniel
Resolveddaniel
DuplicatexSavitar
Resolveddaniel
Resolveddaniel
ResolvedNone
Resolvedovasileva
Declined nray
ResolvedDAlangi_WMF
Resolvedssastry
Resolveddaniel
Resolveddaniel
ResolvedClement_Goubert
Resolveddaniel
ResolvedKrinkle
Resolveddaniel
Resolveddaniel
Resolveddaniel
Resolveddaniel
ResolvedKCVelaga_WMF
Resolveddaniel
ResolvedMSantos
ResolvedDAlangi_WMF
ResolvedDAlangi_WMF
Resolved R_Rana
ResolvedJgiannelos
ResolvedPRODUCTION ERRORcscott
ResolvedPRODUCTION ERRORJgiannelos
ResolvedClement_Goubert
ResolvedKartikMistry
Resolveddaniel
ResolvedBUG REPORTngkountas

Event Timeline

daniel added a project: serviceops.
daniel added a subscriber: Joe.

@daniel and I spoke about this today in our sync call. I'll be investigating which services are using parsoid via RESTBase. Once we have that list, we can then begin migrate the services to access Parsoid via core endpoints directly.

DAlangi_WMF changed the task status from Open to In Progress.Mar 30 2023, 9:47 AM

Change 971242 had a related patch set uploaded (by Daniel Kinzler; author: Daniel Kinzler):

[mediawiki/services/parsoid@master] Emit relative redirects

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