dyrnq commented on issue #8856:
URL: https://github.com/apache/apisix/issues/8856#issuecomment-1437772210

   At this stage,apisix V3.1 (docker.io/apache/apisix:3.1.0-debian) release has 
another  issues <https://github.com/apache/apisix/issues/8827>, and master have 
fix 8827.
   
   So I use dev apisix image (docker.io/apache/apisix:dev) verified this
   
   
   ```bash
   curl http://127.0.0.1:9180/apisix/admin/routes/1000 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
   {
     "uri": "/",
     "name": "nginx-test",
     "upstream": {
       "timeout": {
         "connect": 6,
         "send": 6,
         "read": 6
       },
       "type": "roundrobin",
       "scheme": "http",
       "discovery_type": "consul",
       "pass_host": "pass",
       "service_name": "nginx",
       "keepalive_pool": {
         "idle_timeout": 60,
         "requests": 1000,
         "size": 320
       }
     }
   }'
   ```
   then dump then from apisix
   ```bash
   curl -fsL http://127.0.0.1:9090/v1/discovery/consul/dump | jq -r 
'.services."nginx"[] | "\(.host):\(.port)"'
   192.168.33.4:18080
   192.168.33.4:28080
   192.168.33.4:38080
   192.168.33.4:48080
   ```
   
   
   


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