Support for lua balanced upstreams
Would it be possible to include statistics of lua-provided upstream servers in upstreamsZone? As for now, there are only upstreams defined in nginx config (usually only one "down" server entry):
upstream dynamic_upstream {
server 127.0.0.1:6666 down;
balancer_by_lua_block {
balancer.balance()
}
}
Such statistics can be gathered using for example vhost_traffic_status_filter_by_set_key $upstream_addr upstream::$server_name, but there is no way to hide or replace automatically generated data. There is also a problem with using proxy_next_upstream, because $upstream_addr gets multiple entries.
It would be great to make it possible to include dynamically generated servers in upstream section, or, if impossible, have a means of hiding upstreamZone or part of and handle upstream retries.
Is it implemented now? This feature is urgently needed @vozlt