Waylonwhynot opened a new issue #2153:
URL: https://github.com/apache/apisix-dashboard/issues/2153


   ### Issue description
   
   使用场景:当成7层LB替代Nginx使用
   目前问题:所有upstream上游都配置了主动检查(tcp检测),但是通过GET v1/healthcheck 只返回了其中一组upstream状态信息。
   
   
   ### Expected behavior
   
   
需求:想要类似于Nginx的check_status页面,实时查看所有upstream的状态,或者暴露个接口也可以,但是目前看提供出来的接口返回upstream信息是不全的。
   
   ### How to Reproduce
   
   类似方式配置了5-6个站点
   
   上游配置:
   nodes:
     - host: 10.15.0.5
       port: 80
       weight: 1
   timeout:
     connect: 6
     send: 6
     read: 6
   type: roundrobin
   checks:
     active:
       concurrency: 10
       healthy:
         http_statuses:
           - 200
           - 302
         interval: 1
         successes: 2
       http_path: /
       timeout: 1
       type: tcp
       unhealthy:
         http_failures: 5
         http_statuses:
           - 429
           - 404
           - 500
           - 501
           - 502
           - 503
           - 504
           - 505
         interval: 1
         tcp_Failures: 2
         timeouts: 3
   scheme: http
   pass_host: pass
   name: itsm
   desc: itsm系统
   keepalive_pool:
     idle_timeout: 60
     requests: 1000
     size: 320
   
   
   
   路由配置:
   {
     "uri": "/*",
     "name": "ITSM-internal",
     "desc": "ip白名单",
     "priority": 1,
     "methods": [
       "GET",
       "POST",
       "PUT",
       "DELETE",
       "PATCH",
       "HEAD",
       "OPTIONS",
       "CONNECT",
       "TRACE"
     ],
     "host": "paas.test.com",
     "plugins": {
       "ip-restriction": {
         "disable": false,
         "whitelist": [
           "127.0.0.1",
           "10.8.255.0/24",
           "10.240.0.0/16"
         ]
       },
       "prometheus": {
         "disable": false
       },
       "redirect": {
         "http_to_https": true
       }
     },
     "upstream_id": "374045906003034680",
     "status": 1
   }
   
   ### Screenshots
   
   
[https://user-images.githubusercontent.com/42118870/135215370-6f6e98f9-d1e5-4af0-bde8-f4ade7f4fed1.jpg](url)
   
[https://user-images.githubusercontent.com/42118870/135215383-d1b60d64-e7fe-413d-83c0-2a1ae233e9d7.png](url)
   
[https://user-images.githubusercontent.com/42118870/135215370-6f6e98f9-d1e5-4af0-bde8-f4ade7f4fed1.jpg](url)
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): 2.9
   - OS (cmd: `uname -a`): centos7
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`): 1.19.9.1
   - etcd version, if have (cmd: run `etcd --version`): 3.4.15
   - apisix-dashboard version, if have:v2.8
   
   
   ### Additional context
   
   _No response_


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