Joe123-ai commented on issue #1480: URL: https://github.com/apache/incubator-apisix/issues/1480#issuecomment-616393029
curl http://127.0.0.1:9180/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "uri": "/index.html", "upstream": { "nodes": { "127.0.0.1:9090": 1, "127.0.0.1:8080": 1 }, "type": "roundrobin", "retries": 1, "checks": { "active": { "http_path": "/status", "host": "foo.com", "healthy": { "interval": 2, "successes": 1 }, "unhealthy": { "interval": 1, "http_failures": 1 }, "req_headers": ["User-Agent: curl/7.29.0"] }, "passive": { "healthy": { "http_statuses": [200, 201], "successes": 3 }, "unhealthy": { "http_statuses": [404,500], "http_failures": 1, "tcp_failures": 1 } } } } }' My goal is that when a node server fails, after checking, the request can quickly go to another node server to request data.How do I set it? ---------------------------------------------------------------- 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: [email protected]
