-
Notifications
You must be signed in to change notification settings - Fork 2.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
bug: When the service kv does not exist, the fetch timer of consul_kv will fetch service data frantically, resulting in 100% CPU #4632
Comments
What about using exponential backoff with retry instead of retrying immediately? |
This is a bug now :)) And, if you want to avoid the bug at the moment, you should insert some test data into |
@yongboy yeah, i see |
@sbritocorral yeah, periodic increase maybe better |
Agree, currently, the next timer will be created at once. |
@yongboy Is there anything update? |
@Zheaoli |
Fix apache#4632 Signed-off-by: spacewander <spacewanderlzx@gmail.com>
当服务kv不存在时consul_kv的fetch timer会疯狂获取服务数据导致CPU 100%
2021/07/20 07:11:55 [error] 42#42: *193170 [lua] consul_kv.lua:329: connect consul: http://10.242.154.205:8500/v1/kv/ by key: /kv/apisix-service-upstreams, got result: null, with error: timeout, context: ngx.timer
目测是因为_M.connect异常后直接再次跳转到:: ERR ::再次尝试_M.connect~ 死循环了
The text was updated successfully, but these errors were encountered: