API Rate Limit Policy is always accurate with a single replica, but it becomes difficult with multiple replicas. The rate quota will be shared across many replicas in the same cluster. However, it's not easy to guarantee the requests are distributed evenly to each replica; sometimes, the allocation of requests is highly imbalanced among replicas.
API policy allocates requests to replica based on batches by default. For instance, allocate 20% of overall quota at receiving the first request, then 20% of the remaining quota when the replica uses half of the allocated quota. A replica may run into a situation that it received more requests than the quota allocated to it, but the overall request count is not beyond the overall quota. In this case, the replica returns HTTP error 429 (Too Many Requests) to the client, but from the client perspective, the request is not over the quota.
This knowledge explains how to configure the rate limit policy with multiple replicas in RTF or CloudHub 2.0.
The configuration above can guarantee the quota is accurate for the whole cluster. Please note, this impacts performance, and the TPS may drop.
Screenshot to enable "Distributed"
Which values to use when having multiple rate-limit policies with multiple quotas applied to the same app
Set throttling.distribution_percentage=(replicas/biggest_quota)
For example, if you have a quota of 13 req/min and a quota of 35 req/min, then set throttling.distribution_percentage=(replicas/35)
001116910

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.