[Feature Require] Can upstream backends be modified dynamically?
coooold opened this issue · 3 comments
coooold commented
Can upstream backends be modified dynamically, just like https://github.com/weibocom/nginx-upsync-module, via lua api?
coooold commented
well, i just found these:
http://weibo.com/1834459124/DaEmgBhlD
http://tengine.taobao.org/document/http_dyups.html
could satisfy the requirement.
agentzh commented
BTW, it's recommended to use the balancer_by_lua* feature of ngx_lua for such requirements. It is much more flexible and can handle an unlimited number of possible backend servers at finest granularity:
https://github.com/openresty/lua-nginx-module/#balancer_by_lua_block