-
Notifications
You must be signed in to change notification settings - Fork 47
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
你好,最在在测试这个项目,我们导入了 66 的CDB(MySQL)的Metric,有六台 CDB,ratelimit 配置为 10 的时候提示 超过了每秒频率上限
然后我看了一下代码,按照我的理解 ratelimit 应该是全局的,对 getMonitorDataByMultipleKeys 调用做限制,但是我发现不太管用,然后和我看到 rateLimitCheck 函数中有一条判断,if sleepCount > 某个数值 就不 sleep 了,我的理解是 ratelimit 就不生效了?我尝试把这个参数调整为 1000 秒后,就能够正常拿到数据了。
我对 Go 不太了解,所以请教一下这个参数有什么意义以及 rate limit 是否是全局的?还是只是对单个 goroutine 内生效,谢谢。
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request