kuberxy opened a new issue #4649:
URL: https://github.com/apache/apisix/issues/4649
### Issue description
What is the difference between an active health check and a passive health
check that you implement? Is there a detailed documentation?
The following is my uptream configuration:
```
$ cat apisix.yaml
upstreams:
-
id: 1
name: "nginx"
nodes:
"nginx1:8080": 1
"nginx2:8080": 1
"nginx3:8080": 1
type: roundrobin
checks:
active:
http_path: "/web.healthy"
healthy:
interval: 2
successes: 1
-
id: 2
name: "tomcat"
nodes:
"tomcat1:8081": 1
"tomcat2:8081": 1
"tomcat3:8081": 1
type: roundrobin
checks:
active:
http_path: "/app.healthy"
healthy:
interval: 2
successes: 1
routes:
-
uri: /*
vars:
-
- uri
- ~*
- .(jpg|gif|png|css|js|html|ico|ttf)$
upstream_id: 1
-
uri: /*
upstream_id: 2
#END
```
With this configuration, requests are forwarded to unhealthy nodes when the
backend node network does not work.
Do both active and passive checks have to exist?
### Environment
* apisix version (cmd: `apisix version`): 2.3
* OS (cmd: `uname -a`): 4.15.0-111-generic Ubuntu 18.04
* OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
openresty/1.15.8.3
* etcd version, if have (cmd: run `curl
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
Stand-Alone
* apisix-dashboard version, if have: not have
* luarocks version, if the issue is about installation (cmd: `luarocks
--version`): 2.4.2
--
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]