quota policy -special requirement

Hello @Anil Sagar @ Google, @Dino

I have following requirement:

we do have multiple clients and each client has one or more environment (test,prod etc) . We do have a contract for each client , they should be given separate key for each environment but the hits should be counted irrespective of the environment. Generally each client will have 100,000 hits per 12 or 36 months. Additional to this we should count only 200 status codes from the target end point.

I have done the following.

1. created a proxy (shared across all clients) ex: sample proxy

2. created a single product for each client( shared across environment) .

ex: abc product

3. create a developer app for each environment of a client which points to product.

ex: test abc app, prod abc app.

I have written quota per product policy and I am seeing different kinds of issues.

1. some time i am getting quota error (they occured randomly).if we make a request right after that it works again without any issue.

2. RateLimit-Reset keeps changing even though they should not be changed.

Can you please let me know the ideal way of setting this up.

Thanks,

Venkat

0 1 101
1 REPLY 1

Hi Venkat, can you mention few more points likes,

  1. What is the error you are seeing?
  2. Show us your quota config here?
  3. Why do you think rate limit resets? How did you come to this conclusion?
  4. In which flow are you using this policy?