-
Notifications
You must be signed in to change notification settings - Fork 30
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
限流工具没使用明白,求教 #93
Comments
我请求的URL 是, http://201.84.218.99:3020/v1?app=KOXQaw |
是的,如果手工测试,建议把间隔设置较大的值,例如10s。需要注意: 如果还是有问题,麻烦提供一下完整的配置 |
大佬您好,我目前的配置如下: [plugins.KeyAuth] [plugins.queryAppLimit] [servers.llm19] [servers.llmProxy] [upstreams.llm] 听从您的意见,将延时从1s 改成10s ,无论快速刷新浏览器,还是通过postman 请求代理接口,都没感觉到限流的动作,请问如何能够生效,效果是什么样的呢。 感谢 |
我尝试了一下,由于limit组件支持两种类型限流,所以配置最大值为整数类型,而rate计算出来的是浮点数,转换为整数导致了精度缺失。 因此上面的配置是没问题的,如果要触发到限制出错,需要保证最少1秒触发2次请求,如果需要测试,可以尝试用 |
@QuintinTao 对限流插件还有疑问不? 最新版本的对于rate的处理调整为ceil的形式,更符合实际逻辑。 |
Pingap0.9.10
这样设置后,我理解是在URL 中抓取app = abc, 同一个参数,1秒钟最多请求1次。
但我快速刷新浏览器也无法触发限流。
请大佬指导一下。
The text was updated successfully, but these errors were encountered: