-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Rate limiting plugin with Unlogged batch warning #681
Comments
I am guessing you have multiple periods enabled for the same API? Like year, month, day, etc? If this is the case then this makes sense, and the rate-limiting increasing counters should be done via independent writes rather than a single batch. Because batching with many partitions (which happens when you have many rate-limiting periods) is inefficient. Won't have time to fix right now but this will have to be addressed in the future. Thanks for reporting! |
I had seconds and hour but then I did the same ab test with this rate-limiting setup:
and got the same warning |
Yeah actually I remember no matter how many limits you have the plugin will still increment all the limits to keep track of the calls. So, 6 partitions... |
got it |
rate-limiting plugins don't use a batch statement anymore to increment the counters, which used to overload a coordinator and generate a warning. Since the new driver uses load balancing policies, we increment the counters with regular queries.
This was fixed since #803 got merged. Leaving opened until the release. Thanks for reporting! |
I'm getting this warning when doing ab testing in a single endpoint, with the rate limit plugin enabled.
The text was updated successfully, but these errors were encountered: