Page MenuHomePhabricator

[5.2.2c Epic]: Support Higher Rate Limits for Lift Wing
Closed, ResolvedPublic

Description

Background

FY25/26 KR 5.2 focuses on bringing API endpoints onto common infrastructure. The main aspect of that focuses on routing all traffic through a common API Gateway. To that end, the final set of endpoints that must be rerouted through the common gateway are those remaining on the historic API Gateway (aka: those documented through the API Portal). While the majority of these endpoints follow the same rate limits, the Lift Wing API is an outlier with a custom rate limit policy. To complete the rerouting work, we need to be able to support higher limits for these endpoints, potentially with different thresholds based on user class.

Conditions of acceptance

Update rate limits for Lift Wing to the following:

  • Unidentified - 50k/hr; 15/s
  • Browser - 50k/hr; 50/s
  • Authenticated - 100k/hr; 100/s
  • WMCS - 200k/hr; 200/s
  • Approved bot - 200k/hr; 200/s
  • Known client - 200k/hr; 200/s

The higher limits should only apply for the Lift Wing endpoints. Lift Wing routes are designated by /service/lw in the path.

One enabled, pay close attention to WME traffic in particular, as they represent the current highest volume consumer.

Event Timeline

HCoplin-WMF renamed this task from [5.2.2c Epic]: Support Higher Rate Limits to [5.2.2c Epic]: Support Higher Rate Limits for Lift Wing.Mar 10 2026, 8:47 PM
HCoplin-WMF updated the task description. (Show Details)
HCoplin-WMF updated the task description. (Show Details)

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

[operations/deployment-charts@master] rest-gateway: prepare relaxed limits for liftwing

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

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

[operations/deployment-charts@master] rest gateway: rate limits for liftwing

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

Please ping @Blake when the rate limits are enforced so they can start migrating traffic, thanks.

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

[operations/deployment-charts@master] rest gateway: add suppotr for post requests in limit tests

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

Change #1276650 merged by jenkins-bot:

[operations/deployment-charts@master] rest gateway: add suppotr for post requests in limit tests

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

Change #1236252 abandoned by Daniel Kinzler:

[operations/deployment-charts@master] rest-gateway: prepare relaxed limits for liftwing

Reason:

I09f31ebdc809753a62b2d097fbe2e19fbbd88819

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

Hi @daniel, just wanted to check in - do you happen to know when I might be able to start migrating traffic? Thanks!

Change #1272765 merged by jenkins-bot:

[operations/deployment-charts@master] rest gateway: rate limits for liftwing

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

Hi @daniel, just wanted to check in - do you happen to know when I might be able to start migrating traffic? Thanks!

I'm deploying the limits for liftwing right now. We are still testing, but if all goes well it will be done in 20 minutes.

Ah, *you* are testing it :) I didn't connect your IRC handle to your name on Phab ;)