Page MenuHomePhabricator

mediawiki-event-enrichment in k8s should use mwapi-async envoy listener for MW api requests
Closed, ResolvedPublic

Description

Currently, we use api-ro with a Host header of meta.wikimedia.org to get stream configs from the action API. We should use the Envoy service proxy endpoint 'mwapi-async'.

Details

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
JMeybohm added a subscriber: Clement_Goubert.

Actually (depending on the request volume) you may want to use mw-api-int-asyncdirectly, see T333120: Migrate internal traffic to k8s

cc @Clement_Goubert

Clement_Goubert renamed this task from mediwiki-event-enrichment in k8s should use mwapi-async envoy listener for stream config in to mediawiki-event-enrichment in k8s should use mwapi-async envoy listener for stream config in .Apr 11 2023, 11:29 AM

What is the current request volume for these calls?

From MW event enrichment? Very low. Really only on job startup. Other jobs in the future may be more dynamic, but they'd only need updates after MW config deployments. E.g. for dynamically configured eventgate instances, we cache and expire configs every 5 minutes.

Hm, actually tho, mediawiki-page-content-change-enrichment does more than just request stream config from MW. Stream config only happens on job startup, but the point of this job is to ask MW for the new page content on every edit. Other jobs may do similar things.

In those cases, the request volume is similar to the rate of changes to pages, so ~30 / second.

Ottomata renamed this task from mediawiki-event-enrichment in k8s should use mwapi-async envoy listener for stream config in to mediawiki-event-enrichment in k8s should use mwapi-async envoy listener for MW api requests.May 9 2023, 6:44 PM

Change 917934 had a related patch set uploaded (by Ottomata; author: Ottomata):

[operations/deployment-charts@master] page_content_change - use mwapi-async envoy listener for MW api requests

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

Change 917934 merged by jenkins-bot:

[operations/deployment-charts@master] page_content_change - use mwapi-async envoy listener for MW api requests

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

Change 917948 had a related patch set uploaded (by Ottomata; author: Ottomata):

[operations/deployment-charts@master] page_content_change - bump image version to v1.15.0

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

Change 917948 merged by Ottomata:

[operations/deployment-charts@master] page_content_change - bump image version to v1.15.0

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