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
I am trying to create the local rate limit and seems this does not work as expected.
My idea is to have several usage plans and a common limit.
Usage plans are based on the header X-USAGE-PLAN: basic or X-USAGE-PLAN: pro and X-USAGE-PLAN: enterprise
Currently, only a common bucket does work. Whether I send requests with special headers or not they are throttled by a common bucket.
Seems the buckets for certain headers do not work
Seems like I found out the root cause of this issue:
The global bucket is used FIRST
If a request for a certain bucket exhausts the GLOBAL bucket then this request will be throttled regardless of the bucket configuration that request belongs to!
Hi there!
I am trying to create the local rate limit and seems this does not work as expected.
My idea is to have several usage plans and a common limit.
Usage plans are based on the header
X-USAGE-PLAN: basic
orX-USAGE-PLAN: pro
andX-USAGE-PLAN: enterprise
This is the current Envoy configuration
Envoy config
The issue is:
Currently, only a common bucket does work. Whether I send requests with special headers or not they are throttled by a common bucket.
Seems the buckets for certain headers do not work
How it looks
Console output
I configured the metrics for
http.
and the metricincreased each time I sent a request
Envoy version
The text was updated successfully, but these errors were encountered: