Hi guys
I have a question when i set the peer via ngx.balancer.set_current_peer.
when I pick a peer on my MAC, it works well. I can get response when I curl the openresty. below is my code:
local ok, err = balancer.set_current_peer('127.0.0.1', 15672)
but there is no response when I pick a peer on the other server.
actually, I am sure I re-deploy the lua-code and reload the nginx.
local ok, err = balancer.set_current_peer('192.1.114.170', 10001)
please advice.
BTW:
- I am sure the network and both of the two servers are visitable.
- my OR is openresty-1.21.4.1_1