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 2021/03/22 03:08:42 UTC

[GitHub] [apisix] Firstsawyou commented on issue #3843: Using upstream_route, all requests go to node 1. How to evenly distribute the requests to all nodes?

Firstsawyou commented on issue #3843:
URL: https://github.com/apache/apisix/issues/3843#issuecomment-803730668


   Hi, @sailershen  You try to configure two stream_routes together, like this:
   
   > Why not put these two endpoints into one route?
   > 
   > ```json
   >curl http://127.0.0.1:9080/apisix/admin/stream_routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f2' -X PUT -d '
   > {
   >     "upstream": {
   >         "nodes": {
   >             "172.16.10.241:6500": 1,
   >             "172.16.10.242:6500": 1
   >         },
   >         "type": "roundrobin"
   >     }
   > }'
   > ```


-- 
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