限流问题 #852
Answered
by
iyangsj
lf2186
asked this question in
Q&A (问题和回答)
限流问题
#852
-
hi,您好 以上是某个域名的限流配置,结果是qps超过1000,所有请求都失败了,惩罚时长是10秒,但是业务实际需求是限流1000qps,那么会一直有1000qps请求成功,超出的部分请求失败。 这个需求bfe现在的版本能实现吗?? |
Beta Was this translation helpful? Give feedback.
Answered by
iyangsj
Oct 27, 2021
Replies: 2 comments 2 replies
-
抱歉,没太看懂你的问题。能否再说一下问题和需求? |
Beta Was this translation helpful? Give feedback.
1 reply
-
@lf2186 可以将惩罚周期stayPeriod设置为0: "checkPeriod": 1, // 检测周期为1秒 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
iyangsj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@lf2186 可以将惩罚周期stayPeriod设置为0:
"checkPeriod": 1, // 检测周期为1秒
"stayPeriod": 0, // 额外惩罚时长为0
"threshold": 1000, // 限流阈值为1000请求