# Infinity setMaxRetryTimeoutMillis()

**URL:** <https://discuss.elastic.co/t/infinity-setmaxretrytimeoutmillis/161007>\
**Category:** Elasticsearch\
**Created:** [December 15, 2018, 6:13pm UTC](https://discuss.elastic.co/t/infinity-setmaxretrytimeoutmillis/161007 "2018-12-15T18:13:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![madhan3396](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/madhan3396/32/57318_2.png) [@madhan3396](https://discuss.elastic.co/u/madhan3396)\
**Post date:** [December 15, 2018, 6:13pm UTC](https://discuss.elastic.co/t/infinity-setmaxretrytimeoutmillis/161007/1 "2018-12-15T18:13:26Z")

</div>

Hi,

Is there any way to set setMaxRetryTimeoutMillis() as infinity?  
I'm using Elasticsearch and RestHighLevelClient version 6.4.

The indices that we are maintaining ranges from 50 to 60GB. The terms aggregation and boolquery is quite costlier.

I'm not sure about the max-retry-timeout as it will differ.So please acknowledge me is there any way to set setMaxRetryTimeoutMillis() to infinity.

Regards,  
Madhan Kumar.A

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 12, 2019, 6:13pm UTC](https://discuss.elastic.co/t/infinity-setmaxretrytimeoutmillis/161007/2 "2019-01-12T18:13:28Z")

</div>

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