nginx-module-vts icon indicating copy to clipboard operation
nginx-module-vts copied to clipboard

Support for lua balanced upstreams

Open bartebor opened this issue 6 years ago • 1 comments

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.

bartebor avatar Jan 18 '19 09:01 bartebor

Is it implemented now? This feature is urgently needed @vozlt

HushAsy avatar Apr 28 '21 09:04 HushAsy