I got the error when I use the healthcheck to get the status of upstrems. Has
anyone ever had the same problem?
Error:
2020/03/31 17:03:01 [error] 47#47: *128805375 failed to run balancer_by_lua*:
/usr/local/openresty/lualib/resty/lock.lua:153: API disabled in the context of
balancer_by_lua*
stack traceback:
[C]: in function 'sleep'
/usr/local/openresty/lualib/resty/lock.lua:153: in function 'lock'
/opt/app/mecs//deps/share/lua/5.1/resty/healthcheck.lua:207: in
function 'locking_target_list'
/opt/app/mecs//deps/share/lua/5.1/resty/healthcheck.lua:1315: in
function 'new'
/opt/app/mecs//lua/travelsky/http/checker.lua:25: in function
'create_obj_fun'
/opt/app/mdcs//lua/apisix/core/lrucache.lua:50: in function
'lrucache_checker'
/opt/app/mecs//lua/travelsky/http/checker.lua:35: in function
'fetch_checker'
/opt/app/mecs//lua/travelsky/http/balancer.lua:221: in function
'pick_server'
/opt/app/mecs//lua/travelsky/http/balancer.lua:287: in function
'load_balancer'
/opt/app/mecs//lua/travelsky.lua:259: in function 'http_balancer_phase'
balancer_by_lua:2: in main chunk while connecting to upstream, client:
101.5.19.12, server: , request: "POST / HTTP/1.1", host: "101.5.19.15:8080"
[email protected]