Hello!
On Wed, Nov 4, 2015 at 4:32 PM, king james wrote:
> In my nginx conf file, I configured 3 upstream:
>
[...]
>
> but now I want to update this dynamically with balance_by_la,no need to
> reload nginx con.
>
You can just define a generic upstream named X, and put a
balancer_by_lua directive inside it, as in
upstream X {
server 0.0.0.0; # just a placeholder to make the nginx.conf
loader happy
balancer_by_lua_file /path/to/my/balancer.lua;
}
You can already select peers and define retrying policies on a
*per-request* basis. That gives you the maximum flexibility already.
> @agentzh
>
Please don't do this again since I'm already on the mailing list. Thank you.
Regards,
-agentzh