-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
查询指标请求考虑流量打散 #2409
Comments
下个版本搞一下 |
@RockysGit beta3 ok 了么?新的负载情况如何再截个图瞧瞧? |
今天刚拉的新提交,bate3更新的代码有点多,我只看到有相关修改,还没具体测试。但是我看着好像有点问题。
|
测试结果:的确阻塞的整个切片中规则的启动, 还请尽快修复
|
@RockysGit 最新代码已经修复了 |
希望考虑一下合理去设计规则的启动时机,能够保证打散流量的同时,所有规则的延迟启动(sleep)都是并行,不能够形成阻塞。 |
这个机制就是最简单均衡的方式了,比随机 sleep 更均衡,随机 sleep 有可能会在某一刻产生过高的 qps。如果继续优化,就是把 20ms 做成配置,不同的公司可以再调整,目前相当于对tsdb的查询qps控制在500左右,如果改成10ms就是1000qps |
Question and Steps to reproduce
服务在某些情况下重启后,告警规则会同一时刻start,这种情况下,如果告警规则配置的执行频率相同时(比如都是15s),数据源会每隔15s收到大量请求,而不是打散在15s内请求比较均衡。个人感觉是否可以考虑一下将cronJob的启动时机均匀一下,目前看代码没有找到有相关的处理逻辑。
Relevant logs and configurations
Version
v8.0.0
The text was updated successfully, but these errors were encountered: