thor533 commented on issue #9225:
URL: https://github.com/apache/apisix/issues/9225#issuecomment-1495534049

   
   
   
   > can you share the reproduce env ?
   > 
   > I reproduce this issues by self need more time.
   
   it is very easy to reproduce the issue, you can see the route config:
   `{
       "uri": "/least/*",
       "name": "最小连接数",
       "priority": 1,
       "methods": [
           "GET",
           "POST",
           "PUT",
           "DELETE",
           "PATCH",
           "HEAD",
           "OPTIONS",
           "CONNECT",
           "TRACE"
       ],
       "plugins": {
           "proxy-rewrite": {
               "regex_uri": [
                   "^/least(/|$)(.*)",
                   "/$2"
               ]
           }
       },
       "upstream": {
           "nodes": [
               {
                   "host": "10.4.16.12",
                   "port": 9001,
                   "weight": 1
               },
               {
                   "host": "10.4.16.13",
                   "port": 9001,
                   "weight": 1
               },
               {
                   "host": "10.4.16.14",
                   "port": 9001,
                   "weight": 1
               }
           ],
           "retries": 1,
           "timeout": {
               "connect": 1,
               "send": 1,
               "read": 9
           },
           "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
   }`
   
   You only need to prepare three different upstream servers, route using the 
minimum number of connections algorithm to access, see if the hit server is the 
least connected upstream service! 
   thank you you reply!
   


-- 
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: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to