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));
Thanks