Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Require] Can upstream backends be modified dynamically? #30

Closed
coooold opened this issue Jul 12, 2016 · 3 comments
Closed

[Feature Require] Can upstream backends be modified dynamically? #30

coooold opened this issue Jul 12, 2016 · 3 comments

Comments

@coooold
Copy link

coooold commented Jul 12, 2016

Can upstream backends be modified dynamically, just like https://github.com/weibocom/nginx-upsync-module, via lua api?

@coooold
Copy link
Author

coooold commented Jul 12, 2016

well, i just found these:
http://weibo.com/1834459124/DaEmgBhlD
http://tengine.taobao.org/document/http_dyups.html
could satisfy the requirement.

@coooold coooold closed this as completed Jul 12, 2016
@agentzh
Copy link
Member

agentzh commented Jul 15, 2016

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

@rulatir
Copy link

rulatir commented Jun 29, 2020

@agentzh But balancer_by_lua* cannot be used to unhardcode server itself, can it? The example under your link hardcodes server and uses the lua block for all things other than server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants