ClusterHealthRequest Clarification

Hi Team,

new ClusterHealthRequest(indexName).waitForYellowStatus(); whether this method will check for the particularindex health or it will check healthrequest of entire cluster.

Its depend on your API

GET /_cluster/health/<index>?wait_for_status=yellow&timeout=50s

Its gives the index status in your cluster. If you don't mention the index like

GET /_cluster/health?wait_for_status=yellow&timeout=50s

Its gives the entire cluster status (all indexes will be considered)

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.