elasticsearch/elasticsearch — Issue #1713: Return 503 for any request against a node which is not yet ready
Author: clintongormley
Created: 2012-02-17 12:43:13+00:00
State: open

Issue #1633 changed a request to / to return 503 if the node is not yet able to serve requests.

It'd be helpful to have that same error code returned for any request if the node is not yet ready. That'd make it easier to mark that node as temporarily unavailable, and to automatically retry the next node in the list.

Currently, we'd have to run a test GET / for each node before using it, and if the node restarts, we could have incorrect outdated node status info in the API (meaning that future requests would throw an error, rather than retrying)