zhuchengxing opened a new issue #2799:
URL: https://github.com/apache/apisix/issues/2799


   ### Issue description
   When I used UDP proxy, I find roundrobin unbalanced.  Once the connection is 
established, it will always send a message to only one of the nodes!
   ### Environment
   
   * apisix version (cmd: `apisix version`): 2.0
   * OS:centos7
   
   ### Minimal test code / Steps to reproduce the issue
   1.  config stream_routes:
   {
       "server_addr": "10.3.174.125",  
       "server_port": 9200,  
       "upstream": {
           "nodes": {
               "10.3.174.127:29090": 1,
               "10.3.174.126:29090": 1
           },
           "type": "roundrobin"
       }
   }
   
   2. test send message,I sent several pieces of data to ApisiX 9200 port with 
the **nc** command,commplete command: **nc -p 6336 -u 10.3.174.125 9200**
   
![q](https://user-images.githubusercontent.com/29362652/99751998-6812ae00-2b1e-11eb-9a53-a24809065212.jpg)
   
   
   3.Apisix would forward the UDP message sent, but it was forwarded to only 
one node without load balancing effect, which made me very confused:
   
![2](https://user-images.githubusercontent.com/29362652/99752321-0e5eb380-2b1f-11eb-9933-a29c26e0a34c.jpg)
   
![3](https://user-images.githubusercontent.com/29362652/99752331-11f23a80-2b1f-11eb-9add-0e18d0f014d8.jpg)
   
   
   ### What's the actual result? (including assertion message & call stack if 
applicable)
   You can see that the message is only forwarded to node 126!
   
   
   ### What's the expected result?
   I expect to achieve responsible and balanced results.


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


Reply via email to