ngx.balancer multiple upstream IPs

47 views
Skip to first unread message

Rob Kay

unread,
Dec 5, 2016, 9:37:51 PM12/5/16
to openresty-en
Hi,
I'm using lua-resty-dns to look up the IPs of an ELB and then passing them to balancer_by_lua via ngx.ctx. How can I use the multiple IPs returned by the ELB as upstreams? set_current_peer() only allows for a single IP so i'm not sure how to make it worth with proxy_next_upstream to try subsequent IPs if the first fails.
Reply all
Reply to author
Forward
0 new messages