You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/09/29 09:45:08 UTC
[GitHub] [apisix] Waylonwhynot edited a comment on issue #5154: v1/healthcheck 接口返回信息不全
Waylonwhynot edited a comment on issue #5154:
URL: https://github.com/apache/apisix/issues/5154#issuecomment-930018111
> 你能展示一下什么是极简配置吗?缺少什么数据?这样我就可以繁殖了。
>
> 从上面可以看出健康检查中只有一台主机。
I mean I configured a lot of upstreams and associated them with the route. But v1/healthcheck only show one of the upstreams status.
> For example:
(upstream-1)
`
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
`
(route-1)
`
uri: /*
name: ITSM-internal
desc: ip白名单
priority: 1
methods:
- GET
- POST
- PUT
- DELETE
- PATCH
- HEAD
- OPTIONS
- CONNECT
- TRACE
host: paas.jiduauto.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
`
(upstream-2)
`
nodes:
- host: 10.10.38.27
port: 80
weight: 1
- host: 10.10.38.28
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: OA-pc
desc: OA prod pc
keepalive_pool:
idle_timeout: 60
requests: 1000
size: 320
`
(route-2)
`
uri: /*
name: OA-internal
desc: ip白名单
priority: 11
methods:
- GET
- POST
- PUT
- DELETE
- PATCH
- HEAD
- OPTIONS
- CONNECT
- TRACE
host: team.auto.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: '374498014460379704'
status: 1
`
When I get the admin control API v1/healthcheck, I want to see all upstreams information
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org