heming79 commented on issue #7141:
URL: https://github.com/apache/apisix/issues/7141#issuecomment-1138314930
local upstream_mod = require("apisix.upstream")
local get_upstreams = upstream_mod.upstreams
这个routes 就没问题 稳定的 upstreams 经常就是空的 。
local routes = get_routes()
core.log.error("routes: ", core.json.delay_encode(routes))
local upstreams = get_upstreams()
core.log.error("upstreams: ", core.json.delay_encode(upstreams))
core.log.error("upstream_nodes: ",
core.json.delay_encode(upstreams.nodes))
2022/05/26 08:49:29 [error] 803#803: *31319311 [lua] v1.lua:106: handler():
routes:
[{"clean_handlers":{},"value":{"status":1,"priority":0,"upstream_id":"409123071262202320","host":"service-yyzyh.wanzhuanmohe.cn","name":"service-yyzyh.wanzhuanmohe.cn","methods":["GET","POST"],"update_time":1653386086,"create_time":1653386086,"id":"409123293879081424","uri":"\/*"},"createdIndex":26,"update_count":0,"has_domain":false,"orig_modifiedIndex":26,"key":"\/apisix\/routes\/409123293879081424","modifiedIndex":26},{"clean_handlers":{},"value":{"status":1,"priority":0,"upstream_id":"409123196135021008","host":"service-bmlt.wanzhuanmohe.cn","name":"service-bmlt.wanzhuanmohe.cn","methods":["GET","POST"],"update_time":1653386133,"create_time":1653386133,"id":"409123373017209296","uri":"\/*"},"createdIndex":28,"update_count":0,"has_domain":false,"orig_modifiedIndex":28,"key":"\/apisix\/routes\/409123373017209296","modifiedIndex":28},{"clean_handlers":{},"value":{"status":1,"priority":0,"create_ti
me":1653524709,"host":"service-yyzyh.wanzhuanmohe.cn","upstream_id":"409356277903268304","name":"service-yyzyh.wanzhuanmohe.cn\/app","methods":["GET","POST"],"update_time":1653525007,"uri":"\/app\/","id":"409355866207164880","desc":"游戏接口域名\/app
转发到广告接口"},"createdIndex":2015,"update_count":0,"has_domain":false,"orig_modifiedIndex":2018,"key":"\/apisix\/routes\/409355866207164880","modifiedIndex":2018},{"clean_handlers":{},"value":{"status":1,"priority":0,"create_time":1653536211,"host":"serviceapi-cbdmcnssp.wanzhuanmohe.cn","upstream_id":"409356277903268304","name":"serviceapi-cbdmcnssp.wanzhuanmohe.cn","methods":["GET","POST"],"update_time":1653536211,"uri":"\/*","id":"409375163394562512","desc":"cbd
游戏广告接口"},"createdIndex":2068,"update_count":0,"has_domain":false,"orig_modifiedIndex":2068,"key":"\/apisix\/routes\/409375163394562512","modifiedIndex":2068}],
client: 127.0.0.1, server: , request: "GET /v1/healthcheck HTTP/1.1", host:
"127.0.0.1:90
90"
2022/05/26 08:49:29 [error] 803#803: *31319311 [lua] v1.lua:112: handler():
upstreams: , client: 127.0.0.1, server: , request: "GET /v1/healthcheck
HTTP/1.1", host: "127.0.0.1:9090"
2022/05/26 08:49:29 [error] 803#803: *31319311 [lua] v1.lua:113: handler():
upstream_nodes: null, client: 127.0.0.1, server: , request: "GET
/v1/healthcheck HTTP/1.1", host: "127.0.0.1:9090"
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]