-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
We have dynamic balancer which discovers inside ngx.timer (from lua-nginx-module) upstreams of tarantool and balances client requests according to some application logic. We would like to configure tarantool location in the following way:
server {
server_name _;
location .tnt {
internal;
tnt_pass $tarantool;
}
location / {
set $tarantool "placeholder";
content_by_lua_block {
for _, tnt in app:upstreams() do
ngx.var.tarantool = tnt -- sets variable
app:execute() -- performs internal request to .tnt
end
}
}
}
We can't do this now, because tnt_pass requires IP address or upstream name
Aerra, maksim-kharitonov, olegrok, ochaton, Mons and 5 more
Metadata
Metadata
Assignees
Labels
No labels