Page MenuHomePhabricator

Rollout more wikis: week 2
Closed, ResolvedPublic

Description

For this round of PCS on restbase sunset lets rollout to all the wikis except of top 3.

  • zhwiki usually triggers edge cases because of langconverter so maybe we can wait a bit for the rollout
  • enwiki/dewiki is too much traffic so maybe they need special rollout

TODO:

  • Enable changeprop
  • Prepare dataset for cache prewarm
  • Switchover traffic

Event Timeline

Change #1126569 had a related patch set uploaded (by Jgiannelos; author: Jgiannelos):

[operations/deployment-charts@master] changeprop: Rollout more wikis for PCS/RESTBase sunset

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

I think this round of rollout needs a bit more thinking.
Currently restbase maintains a list of per project (wikipedias, wiktionaries, wikiquotes, wikivoyages) thats explicit:
https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/services/restbase/deploy/+/refs/heads/master/scap/vars.yaml#49

Since we don't support all endpoints for all projects we need to have a way to map this in the new setup with rest-gateway per endpoint.
Thoughts @hnowlan ?

Ideally, we have something that is out-of-the-box and not too focused on supporting specific language domains like RESTBase does, just projects. This will also alleviate the burden for the wiki creation process.

Do we stand to lose anything by routing all requests to PCS and returning 404s as is appropriate for unsupported projects/languages?

We can do that, but that means we should keep track of whats supported and whats not in the PCS level which puts PCS config in the critical path for admin stuff, like eg. new wiki creation.

For reference, from a quick look:

  • page/media-list page/mobile-html
    • wiktionary
    • wikivoyage
    • wikipedia
  • page/summary
    • wikipedia
    • commons
    • wikivoyage
    • wikiquote
    • wikisource
    • wikibooks
    • wikinews
    • wikiversity
    • wikimedia
    • specials
      • mediawiki.org, wikisource.org,

Do we stand to lose anything by routing all requests to PCS and returning 404s as is appropriate for unsupported projects/languages?

We should proceed with a more generic rule for projects. I don't see any reasons to gate per language/project and don't know exactly why it was like this in the past.

Could we exclude itwiki and ptwiki from the next tranche. We have fundraising banners going live on the apps there and would be good to avoid any potential disruption to those campaigns.

I updated the patch to enable all changeprop traffic except of top 9 by PCS traffic:

en|de|ru|ja|fr|es|zh|it|pt

The idea is that there are some fundraising campaigns happening and we would like to reduce the exposure to more traffic for one more week to test the rollout a bit more.

Change #1127077 had a related patch set uploaded (by Jgiannelos; author: Jgiannelos):

[mediawiki/services/mobileapps@master] Restrict domains to the project subdomains

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

Change #1124475 had a related patch set uploaded (by Jgiannelos; author: Jgiannelos):

[mediawiki/services/mobileapps@master] Fix URI of emitted events

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

Change #1124475 merged by jenkins-bot:

[mediawiki/services/mobileapps@master] Fix URI of emitted events

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

Change #1127533 had a related patch set uploaded (by Jgiannelos; author: Jgiannelos):

[mediawiki/services/mobileapps@master] Bug: T388140 Change-Id: I7817313140086484c3a22a1a6f13e30a4d81ab82

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

Change #1127533 abandoned by Jgiannelos:

[mediawiki/services/mobileapps@master] Bug: T388140 Change-Id: I7817313140086484c3a22a1a6f13e30a4d81ab82

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

Change #1127077 merged by jenkins-bot:

[mediawiki/services/mobileapps@master] Restrict domains to the project subdomains

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

Change #1126569 merged by jenkins-bot:

[operations/deployment-charts@master] changeprop: Rollout more wikis for PCS/RESTBase sunset

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

Change #1131748 had a related patch set uploaded (by Hnowlan; author: Hnowlan):

[operations/puppet@production] trafficserver: gateway-check ignore list, roll pcs/mobileapps to more wikis

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

Change #1131748 merged by Hnowlan:

[operations/puppet@production] trafficserver: gateway-check ignore list, roll pcs/mobileapps to more wikis

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

Change #1133079 had a related patch set uploaded (by Hnowlan; author: Hnowlan):

[operations/deployment-charts@master] mobileapps: increase replicas

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

Change #1133090 had a related patch set uploaded (by Hnowlan; author: Hnowlan):

[operations/puppet@production] trafficserver: correct escape non-regex dash, fix wiki typo

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

Change #1133090 merged by Hnowlan:

[operations/puppet@production] trafficserver: correct escape non-regex dash, fix wiki typo

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

Jgiannelos updated the task description. (Show Details)

After 10 days of the change in prod I don't see anything worrysome on the client side sessions latency for the languages we've switchedover:

SELECT
    date_trunc(HOUR, from_iso8601_timestamp(dt)) AS hourly,
    approx_percentile(session_data."page_load_latency_ms", 0.5) AS p50,
    approx_percentile(session_data."page_load_latency_ms", 0.75) AS p75,
    approx_percentile(session_data."page_load_latency_ms", 0.9) AS p90,
    approx_percentile(session_data."page_load_latency_ms", 0.95) AS p95,
    approx_percentile(session_data."page_load_latency_ms", 0.99) AS p99
FROM
    event.app_session
WHERE
    from_iso8601_timestamp(dt) >= date(2025-03-01)
    AND from_iso8601_timestamp(dt) < date(2025-05-01)
    AND NOT primary_language IN (en, de, ru, ja, fr, es, zh, it, pt)
GROUP BY
    date_trunc(HOUR, from_iso8601_timestamp(dt))

https://superset.wikimedia.org/superset/explore/p/O7VXo4MbqN4/

image.png (4,432×1,698 px, 298 KB)

Change #1133079 abandoned by Hnowlan:

[operations/deployment-charts@master] mobileapps: increase replicas

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