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

[ASK] StatSlidingWindowBucketCount 设置多少合适? 作用是什么? #561

Open
inolddays opened this issue Mar 20, 2024 · 2 comments

Comments

@inolddays
Copy link

slow 限流这个值建议是多少? 需要综合那些指标来定义这个值的大小和范围?
thanks

@inolddays inolddays changed the title [ASK] StatSlidingWindowBucketCount 代表什么? 文档中没有体现这个值的作用? [ASK] StatSlidingWindowBucketCount 设置多少合适? Mar 20, 2024
@inolddays inolddays changed the title [ASK] StatSlidingWindowBucketCount 设置多少合适? [ASK] StatSlidingWindowBucketCount 设置多少合适? 作用是什么? Mar 20, 2024
@binbin0325
Copy link
Collaborator

滑动窗口中桶的数量,这个可以根据请求的并发量以及滑动窗口的统计周期来预估,总之桶的数量设置越少窗口就越大:统计精准度越低,但并发性能好,桶的数量越多窗口越小:统计精准度越高,并发性能随之降低。

@binbin0325
Copy link
Collaborator

可以参考下:https://mp.weixin.qq.com/s/pJzagltLzSin2EnIzKZK_Q

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants