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

[publisher] Issue regarding the 10kPerMin advanced throttling policy quota allocation #3496

Open
SabinaPrasadhi opened this issue Oct 3, 2019 · 7 comments
Assignees

Comments

@SabinaPrasadhi
Copy link

Test Scenario: [N] If API level 10KPerMin quota has selected while managing an API, the total number of request to the API should not be more than the defined (can check max + 1)

Issue: The 10kPerMin advanced throttling policy, when applied to the API Level allowed 15766 successful hits.

Screenshot from 2019-10-03 12-01-11

@dushaniw dushaniw self-assigned this Oct 17, 2019
@dushaniw
Copy link
Contributor

Advanced level throttling works with wso2/carbon-apimgt#7620

@dushaniw
Copy link
Contributor

@SabinaPrasadhi Can you provide more information regarding the test? Eg: No threads and ramp-up period in seconds? Did you apply any other throttling policies for application ad subscription levels other than "Unlimited"?

Were you getting the following exception in the carbon logs for every API request?

[2019-10-14 09:59:52,039] WARN - ThrottleHandler Unable to find throttling information for resource and http verb. Throttling will not be applied

@SabinaPrasadhi
Copy link
Author

I've got the same issue when given 150 threads with loop count of 100 and ramp up period 0 with application and sunscription level policies specified as unlimited.

Screenshot from 2019-10-18 18-02-21

Screenshot from 2019-10-18 18-01-36

@dushaniw
Copy link
Contributor

dushaniw commented Oct 18, 2019

Can you check how long it had taken to run the first 10000 threads? Check the Start time of the 10001th thread.

When you give 150 threads with loop count to 100 with ramp-up period 0, you are not restricting the threads to run within a minute time period right? If your 10001 requests are not within a 1 minute time window, then 10KPerMin throttling will not apply

@SabinaPrasadhi
Copy link
Author

SabinaPrasadhi commented Oct 20, 2019

I've checked by providing the credentials, 100 threads with the loop count 110 and with ramp-up period 0, 10130th request was a successful hit. The 10000th request was received within 59 seconds in this attempt. I was receiving the following warning in the terminal as well.

Screenshot from 2019-10-20 11-07-39

Screenshot from 2019-10-20 11-07-51

@SabinaPrasadhi
Copy link
Author

I've created a 10PerMin new Advanced Throttling Tier and tried out by providing the credentials 1 thread, with loop count 30, 0 ramp-up period within 60 seconds. But, the 30th request was a successful hit and it took 7 seconds for the 10th hit.

Screenshot from 2019-10-20 11-19-03

Screenshot from 2019-10-20 11-18-56

@dushaniw dushaniw removed their assignment Nov 25, 2019
@NethmiRanasinghe NethmiRanasinghe self-assigned this Jan 3, 2025
@NethmiRanasinghe
Copy link

This issue is reproducing in the latest version

@Krishanx92 Krishanx92 transferred this issue from wso2/product-apim Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants