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:
[email protected]


With regards,
Apache Git Services

Reply via email to