You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/03/17 06:11:14 UTC
[GitHub] [incubator-apisix] qiujiayu edited a comment on issue #1282: hard
to extend the `nodes` of upstream
qiujiayu edited a comment on issue #1282: hard to extend the `nodes` of upstream
URL: https://github.com/apache/incubator-apisix/issues/1282#issuecomment-599893709
@moonming
service A has two nodes:
```
nodes = [{
ip = "192.168.1.100",
port = 8080,
weight = 1,
metadata = {
test_server = "true"
}
},
{
ip = "192.168.1.101",
port = 8080,
weight = 1,
metadata = {
test_server = "false"
}
},
]
```
if request header has "test:true", then proxy to node: "192.168.1.100", else proxy to "192.168.1.101".
for it, we need add some logic at balancer phase.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services