Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I apply Two Rate limits on the same Key Value pair? #693

Open
kkasbi opened this issue Aug 29, 2024 · 1 comment
Open

How can I apply Two Rate limits on the same Key Value pair? #693

kkasbi opened this issue Aug 29, 2024 · 1 comment

Comments

@kkasbi
Copy link

kkasbi commented Aug 29, 2024

I basically want to apply multiple limits to get, post etc methods.

- descriptors: - descriptors: - key: method rate_limit: requests_per_unit: 1000 unit: 3 unlimited: false value: get - key: method rate_limit: requests_per_unit: 2 unit: 1 unlimited: false value: get - key: method rate_limit: requests_per_unit: 400 unit: 3 unlimited: false value: post - key: method rate_limit: requests_per_unit: 1 unit: 1 unlimited: false value: post key: path rate_limit: requests_per_unit: 1000 unit: 1 unlimited: false value: /api/v1/subpath

But the above give the below error,

duplicate descriptor composite key 'apis.tenant.destination_cluster_cloud.net.path_/prd/api/v1/subpath.method_get

Any possible solutions to this?

@zirain
Copy link
Contributor

zirain commented Sep 17, 2024

use different domain?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants