Page MenuHomePhabricator

RESTBase mentions 200 requests/s but varnishes rate limit at 50/seconds
Closed, DuplicatePublic


The RESTBase API doc at mentions:

As a general rule, don't perform more than 200 requests/s to

@BBlack recently introduced a rate limiter in Varnish which limits requests to 50/secs:


sub misspass_limiter {
    if (ipcast.ip(req.http.X-Client-IP, "") !~ wikimedia_nets) {
        // TBF: "1, 0.02s, 250" == "50/s, burst of 250"
        if (!tbf.rate(req.http.X-Client-IP, 1, 0.02s, 250)) {
            error 429 "Request Rate Exceeded";

Maybe we should only mention the actual rate limit on the already linked page then add a comment in VCL to remember folks to update the wikipage.

Event Timeline

hashar created this task.Nov 19 2015, 8:21 PM
hashar raised the priority of this task from to Low.
hashar updated the task description. (Show Details)
hashar added projects: RESTBase, Varnish.
hashar added subscribers: hashar, BBlack.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 19 2015, 8:21 PM
Restricted Application added a project: Operations. · View Herald TranscriptMay 4 2016, 9:13 AM