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

Quotas Consumptions are wrong #2066

Closed
cbois opened this issue Jan 6, 2025 · 2 comments
Closed

Quotas Consumptions are wrong #2066

cbois opened this issue Jan 6, 2025 · 2 comments
Assignees
Milestone

Comments

@cbois
Copy link

cbois commented Jan 6, 2025

Hi!

I'm performing some tests around Otoroshi GatewayEvents, mainly on Otoroshi Events fired when a client exceeds his apikey's quotas.
But, I'm facing an issue with the quota consumption (daily/monthly) calculated by Otoroshi.
This problem only occurs after "Reset quotas consumption" action.

  • Otoroshi version: 16.22.0
  • Datastore: PostGreSQL
  • Cluster mode
  • Severity : low (for us)

Use case to reproduce :

I set some random quotas on my Api Key, and I "reset quotas consumption" :

image

I perform only 1 call with this Api Key, and I refresh the page with the quotas consumptions counters:

image

Next calls are correctly incremented, so this seems to be a localized problem with the "reset quotas consumption" function.

Obviously, with lower quota values, I'm reaching limit really quickly (with a HTTP 429 response... as expected)

Thank's

@Zwiterrion
Copy link
Member

@mathieuancelin
Copy link
Member

I'm closing this one as #2071 has been merged. It will be available in the next release

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

No branches or pull requests

3 participants