You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Above 600 req should be across the day. Meaning maybe 60 req per minute.
I have tried below descriptor definition but it seems its is putting multiple rules with OR operator. domain: test-domain descriptors: - key: USERID value: "TEMP_USER" rate_limit: requests_per_unit: 600 unit: day - key: USERID value: "TEMP_USER" rate_limit: requests_per_unit: 60 unit: hour
With above config, it is allowing all the day limit which is 600 req, in first hour of the day as well since it matches the first rules and ignores the second rules.
Idea here is to not allow customers to send all the request of daily limit in a short period of time and over-flood the server. Instead allow a small portion of their daily limit per hour.
I couldn't achieve it using multiple combinations of descriptors, so wondering if it even supported.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.
Our requirement is to put a rate limit as below:
I have tried below descriptor definition but it seems its is putting multiple rules with OR operator.
domain: test-domain descriptors: - key: USERID value: "TEMP_USER" rate_limit: requests_per_unit: 600 unit: day - key: USERID value: "TEMP_USER" rate_limit: requests_per_unit: 60 unit: hour
With above config, it is allowing all the day limit which is 600 req, in first hour of the day as well since it matches the first rules and ignores the second rules.
Idea here is to not allow customers to send all the request of daily limit in a short period of time and over-flood the server. Instead allow a small portion of their daily limit per hour.
I couldn't achieve it using multiple combinations of descriptors, so wondering if it even supported.
The text was updated successfully, but these errors were encountered: