[ https://issues.apache.org/jira/browse/SOLR-17134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Noble Paul resolved SOLR-17134. ------------------------------- Resolution: Duplicate > Bucketed rate limiting > ---------------------- > > Key: SOLR-17134 > URL: https://issues.apache.org/jira/browse/SOLR-17134 > Project: Solr > Issue Type: Improvement > Reporter: Noble Paul > Assignee: Noble Paul > Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > > The current rate limiting functionality is limiting . We either get a rate > limit or we don't. There are cases where we would like to rate limit only a > certain type of requests. > The usecase is as follows. > > We may have normal requests that go through without any rate limiting. When a > certain header or param is passed , the requests are throttled. we should > be able to throttle to > * 'n1' requests in parallel for requests with a header/param value "x" > * "n2" requests in parallel for requests with a header/param value "y" > and so on > The configuration would look as following > > {code:json} > { > "rate-limiters": { > "enabled": true, > "readBuckets": [ > { > "name": "x-type", > "header": {"solr-bucket-name": "x-type"}, > "allowedRequests": 5, > "slotAcquisitionTimeoutInMS": 100 > }, > { > "name": "y-type", > "header": {"solr-bucket-name": "y-type"}, > "allowedRequests": 25, > "slotAcquisitionTimeoutInMS": 100 > } > ] > } > } > {code} > -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org