Timeout when ES is dead

I have 3 nodes cluster and when I kill 2 I expect ES to reject my bulk index requests. (Defined minimum of 2 nodes in cluster).
ES does reject my bulk index request but it takes 1 minute. What timeout can I configure in order to get the reject earlier?

This line of code didn't help for some reason, can someone also explain what is this timeout?

bulkRequestBuilder.add(indexRequestBuilder.setSource(eventJson.getValue(), XContentType.JSON).setCreate(true).setTimeout(TIMEOUT));


you should be able to set BulkRequestBuilder#setTimeout(TimeValue) to do this.

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