You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/07/20 07:26:52 UTC

[GitHub] [apisix] forcemain opened a new issue #4632: bug: 当服务kv不存在时consul_kv的fetch timer会疯狂获取服务数据导致CPU 100%

forcemain opened a new issue #4632:
URL: https://github.com/apache/apisix/issues/4632


   当服务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~ 死循环了


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] Zheaoli commented on issue #4632: bug: When the service kv does not exist, the fetch timer of consul_kv will fetch service data frantically, resulting in 100% CPU

Posted by GitBox <gi...@apache.org>.
Zheaoli commented on issue #4632:
URL: https://github.com/apache/apisix/issues/4632#issuecomment-912386647


   @yongboy Is there anything update?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] yongboy commented on issue #4632: bug: 当服务kv不存在时consul_kv的fetch timer会疯狂获取服务数据导致CPU 100%

Posted by GitBox <gi...@apache.org>.
yongboy commented on issue #4632:
URL: https://github.com/apache/apisix/issues/4632#issuecomment-883184635


   This is a bug now :))
   I would submit a PR  later to fix it.
   
   And, if you want to avoid the bug at the moment, you should insert some test data into `/apisix-service-upstreams` key space.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tokers commented on issue #4632: bug: 当服务kv不存在时consul_kv的fetch timer会疯狂获取服务数据导致CPU 100%

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #4632:
URL: https://github.com/apache/apisix/issues/4632#issuecomment-883321085


   Agree, currently, the next timer will be created at once.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander closed issue #4632: bug: When the service kv does not exist, the fetch timer of consul_kv will fetch service data frantically, resulting in 100% CPU

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #4632:
URL: https://github.com/apache/apisix/issues/4632


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] yongboy commented on issue #4632: bug: 当服务kv不存在时consul_kv的fetch timer会疯狂获取服务数据导致CPU 100%

Posted by GitBox <gi...@apache.org>.
yongboy commented on issue #4632:
URL: https://github.com/apache/apisix/issues/4632#issuecomment-883184635


   This is a bug now :))
   I would submit a PR  later to fix it.
   
   And, if you want to avoid the bug at the moment, you should insert some test data into `/apisix-service-upstreams` key space.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] forcemain commented on issue #4632: bug: 当服务kv不存在时consul_kv的fetch timer会疯狂获取服务数据导致CPU 100%

Posted by GitBox <gi...@apache.org>.
forcemain commented on issue #4632:
URL: https://github.com/apache/apisix/issues/4632#issuecomment-883186475


   @yongboy yeah, i see


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #4632: bug: When the service kv does not exist, the fetch timer of consul_kv will fetch service data frantically, resulting in 100% CPU

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #4632:
URL: https://github.com/apache/apisix/issues/4632#issuecomment-912396473


   @Zheaoli 
   I am working on it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] forcemain commented on issue #4632: bug: 当服务kv不存在时consul_kv的fetch timer会疯狂获取服务数据导致CPU 100%

Posted by GitBox <gi...@apache.org>.
forcemain commented on issue #4632:
URL: https://github.com/apache/apisix/issues/4632#issuecomment-883187815


   @sbritocorral yeah,  periodic increase  maybe better 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #4632: bug: 当服务kv不存在时consul_kv的fetch timer会疯狂获取服务数据导致CPU 100%

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #4632:
URL: https://github.com/apache/apisix/issues/4632#issuecomment-883184083


   What about using exponential backoff with retry instead of retrying immediately?
   We can try after 1,4,16,64,256,256,... seconds.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tokers commented on issue #4632: bug: 当服务kv不存在时consul_kv的fetch timer会疯狂获取服务数据导致CPU 100%

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #4632:
URL: https://github.com/apache/apisix/issues/4632#issuecomment-883321085


   Agree, currently, the next timer will be created at once.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #4632: bug: 当服务kv不存在时consul_kv的fetch timer会疯狂获取服务数据导致CPU 100%

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #4632:
URL: https://github.com/apache/apisix/issues/4632#issuecomment-883184083


   What about using exponential backoff with retry instead of retrying immediately?
   We can try after 1,4,16,64,256,256,... seconds.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] yongboy commented on issue #4632: bug: 当服务kv不存在时consul_kv的fetch timer会疯狂获取服务数据导致CPU 100%

Posted by GitBox <gi...@apache.org>.
yongboy commented on issue #4632:
URL: https://github.com/apache/apisix/issues/4632#issuecomment-883184635


   This is a bug now :))
   I would submit a PR  later to fix it.
   
   And, if you want to avoid the bug at the moment, you should insert some test data into `/apisix-service-upstreams` key space.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] forcemain commented on issue #4632: bug: 当服务kv不存在时consul_kv的fetch timer会疯狂获取服务数据导致CPU 100%

Posted by GitBox <gi...@apache.org>.
forcemain commented on issue #4632:
URL: https://github.com/apache/apisix/issues/4632#issuecomment-883186475






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #4632: bug: 当服务kv不存在时consul_kv的fetch timer会疯狂获取服务数据导致CPU 100%

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #4632:
URL: https://github.com/apache/apisix/issues/4632#issuecomment-883184083


   What about using exponential backoff with retry instead of retrying immediately?
   We can try after 1,4,16,64,256,256,... seconds.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] forcemain commented on issue #4632: bug: 当服务kv不存在时consul_kv的fetch timer会疯狂获取服务数据导致CPU 100%

Posted by GitBox <gi...@apache.org>.
forcemain commented on issue #4632:
URL: https://github.com/apache/apisix/issues/4632#issuecomment-883186475






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org