You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug: apisix When only the active health check configuration is modified through the interface, the passive health check is also turned on through dashbord
#8000
Closed
jiahui1988 opened this issue
Sep 27, 2022
· 3 comments
moonming
changed the title
bug: apisix 当通过接口只修改主动健康检查的配置时候,再通过dashbord查看发现被动健康检查也被打开了
bug: apisix When only the active health check configuration is modified through the interface, the passive health check is also turned on through dashbord
Sep 28, 2022
This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.
This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.
Current Behavior
1): 通过接口添加一个被动健康检查
curl http://127.0.0.1:9080/apisix/admin/routes/101 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
"uri": "/index.html",
"plugins": {
"limit-count": {
"count": 2,
"time_window": 60,
"rejected_code": 503,
"key": "remote_addr"
}
},
"upstream": {
"nodes": {
"127.0.0.1:1980": 1
},
"type": "roundrobin",
"retries": 2,
"checks": {
"active": {
"http_path": "/status",
"host": "foo.com",
"healthy": {
"interval": 2,
"successes": 1
},
"unhealthy": {
"interval": 1,
"http_failures": 2
}
}
}
}
}'
2):通过dashboard查看该配置,发现被健康检查也被打开了(且通过响应的数据看,响应数据确实携带了被动健康检查等相关字段)。
Expected Behavior
此时的被动健康检查自带应该是关闭状态。且响应数据不应该携带被动健康检查字段
Error Logs
无日志输出。
Steps to Reproduce
1): 通过接口添加一个被动健康检查
curl http://127.0.0.1:9080/apisix/admin/routes/101 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
"uri": "/index.html",
"plugins": {
"limit-count": {
"count": 2,
"time_window": 60,
"rejected_code": 503,
"key": "remote_addr"
}
},
"upstream": {
"nodes": {
"127.0.0.1:1980": 1
},
"type": "roundrobin",
"retries": 2,
"checks": {
"active": {
"http_path": "/status",
"host": "foo.com",
"healthy": {
"interval": 2,
"successes": 1
},
"unhealthy": {
"interval": 1,
"http_failures": 2
}
}
}
}
}'
2):通过dashboard查看该配置,发现被健康检查也被打开了(且通过响应的数据看,响应数据确实携带了被动健康检查等相关字段)。
Environment
The text was updated successfully, but these errors were encountered: