githubxubin commented on issue #9121:
URL: https://github.com/apache/apisix/issues/9121#issuecomment-1478810604

   > Please provide complete steps to reproduce
   
   1.The first route configuration configures three upstream routes to provide 
the same service.
   
   2.Second, the least conn algorithm is used to set the same weight to 1, and 
no plug-ins are configured
   
   3.The third view three upstream server connections Respectively is 169 
connection number 116 connection number 201 number of connections (with 
"netstat - ant | grep ^ TCP | wc -l")
   
   4.The fourth request route discovery does not always hit the service with 
the minimum number of connections, but rather at random
   
   
   route config:
   `{
       "id": "451165119469060800",
       "create_time": 1678444966,
       "update_time": 1679370326,
       "uri": "/yangcong/*",
       "name": "测试",
       "priority": 1,
       "methods": [
           "TRACE",
           "POST",
           "GET",
           "CONNECT"
       ],
       "plugins": {
           "basic-auth": {
               "disable": true,
               "password": "df",
               "sdf": "sdf",
               "username": "dd"
           },
           "proxy-rewrite": {
               "headers": {
                   "1111": "123456",
                   "test": "88888"
               },
               "method": "POST",
               "scheme": "http"
           }
       },
       "upstream": {
           "nodes": [
               {
                   "host": "10.4.16.14",
                   "port": 8180,
                   "weight": 1
               },
               {
                   "host": "10.4.16.15",
                   "port": 8180,
                   "weight": 1
               },
               {
                   "host": "10.4.16.12",
                   "port": 8180,
                   "weight": 1
               }
           ],
           "retries": 4,
           "timeout": {
               "connect": 6,
               "send": 6,
               "read": 6
           },
           "type": "least_conn",
           "scheme": "http",
           "pass_host": "pass",
           "keepalive_pool": {
               "idle_timeout": 60,
               "requests": 1000,
               "size": 320
           },
           "retry_timeout": 1
       },
       "labels": {
           "1": "1"
       },
       "status": 1
   }`
   


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to