Hi All
Wonder how to implement this in lua?
when get a POST/GET request, I need to send multiple different HEAD requests to various upstream servers. Then base on the results, pick one upstream server for the actual request.
I checked this http://sosedoff.com/2012/06/11/dynamic-nginx-upstreams-with-lua-and-redis.html, which might be close. Wonder how to send multiple HEAD requests at same time? Looks like I shall use http://wiki.nginx.org/HttpLuaModule#ngx.location.capture_multi. But the example uses locations. In my case, the servers' IP are dynamically generated.
Thanks.
Ming