asher86v opened a new issue #975: request help:  开启health健康检查,不能自动剔除有问题的节点
URL: https://github.com/apache/incubator-apisix/issues/975
 
 
   ### Issue description
   开启health健康检查,不能自动剔除有问题的节点
   
   ### Environment
   * apisix version (cmd: `apisix version`): 0.9-rc1
   * OS:  CentOS Linux release 7.4.1708 (Core)
   
   
   curl -i -X PUT http://10.110.2.120:9080/apisix/admin/routes/1112 -d '
   {
   "uri": "/*",
   "hosts": ["www.dd.com"],
   "methods": ["PUT", "GET", "POST", "DELETE"],
   "upstream": {
   "type": "roundrobin",
   "nodes": {
   "10.110.2.95:5000": 1,
   "10.110.2.95:5001": 1
   },
   "checks": {
   "passive": {
   "healthy": {
   "http_statuses": [200, 201, 204, 301],
   "successes": 1
   },
   "unhealthy": {
   "http_statuses": [500, 504,502, 403],
   "http_failures": 1,
   "tcp_failures": 1
   }
   }
   }
   }
   }'
   
   这时候关掉其中一个节点得服务,会出现502错误。
   
   ➜  ~ curl www.dd.com:9080
   5000%                                                                        
                                                                                
                                   ➜  ~ curl www.dd.com:9080
   5001%                                                                        
                                                                                
                                   ➜  ~ curl www.dd.com:9080
   5000%                                                                        
                                                                                
                                   ➜  ~ curl www.dd.com:9080
   5001%                                                                        
                                                                                
                                   ➜  ~ curl www.dd.com:9080
   <html>
   <head><title>502 Bad Gateway</title></head>
   <body>
   <center><h1>502 Bad Gateway</h1></center>
   <hr><center>openresty</center>
   </body>
   </html>
   
   
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to