Timeout when ES is dead


#1

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


(Simon Willnauer) #2

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


(system) #3

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