# Changing the refresh interval on running nodes

**URL:** <https://discuss.elastic.co/t/changing-the-refresh-interval-on-running-nodes/4544>\
**Category:** Elasticsearch\
**Created:** [June 3, 2011, 5:59pm UTC](https://discuss.elastic.co/t/changing-the-refresh-interval-on-running-nodes/4544 "2011-06-03T17:59:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manish\_Pandit](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manish_pandit/32/3000_2.png) [@Manish\_Pandit](https://discuss.elastic.co/u/Manish_Pandit)\
**Post date:** [June 3, 2011, 5:59pm UTC](https://discuss.elastic.co/t/changing-the-refresh-interval-on-running-nodes/4544/1 "2011-06-03T17:59:51Z")

</div>

I am seeing the refresh interval of 5 seconds instead of 1 second that  
I thought was the default. However, I want to change it to 1 second -  
I was wondering if there is a way to do it without bringing any of the  
nodes down. I have a cluster with 4 nodes and 1 index. Here is the  
status from 1 of the 4 nodes:

os: {  
refresh\_interval: 5000  
cpu: {  
vendor: "Intel"  
model: "Xeon"  
mhz: 2266  
total\_cores: 2  
total\_sockets: 2  
cores\_per\_socket: 16  
cache\_size: "8kb"  
cache\_size\_in\_bytes: 8192  
}  
mem: {  
total: "3.9gb"  
total\_in\_bytes: 4194304000  
}  
swap: {  
total: "1.9gb"  
total\_in\_bytes: 2097434624  
}  
}

Thanks - I appreciate your help!

-cheers,  
Manish

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [June 3, 2011, 6:11pm UTC](https://discuss.elastic.co/t/changing-the-refresh-interval-on-running-nodes/4544/2 "2011-06-03T18:11:51Z")

</div>

Hi Manish

On Fri, 2011-06-03 at 10:59 -0700, Manish Pandit wrote:

> I am seeing the refresh interval of 5 seconds instead of 1 second that  
> I thought was the default. However, I want to change it to 1 second -  
> I was wondering if there is a way to do it without bringing any of the  
> nodes down. I have a cluster with 4 nodes and 1 index. Here is the  
> status from 1 of the 4 nodes:

You can update the index settings:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

clint

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [June 3, 2011, 8:09pm UTC](https://discuss.elastic.co/t/changing-the-refresh-interval-on-running-nodes/4544/3 "2011-06-03T20:09:36Z")

</div>

Thats the refresh interval for the os stats, not the index refresh interval :). If you get the settings for the index and you don't see any refresh interval setting, then its using the default.

On Friday, June 3, 2011 at 8:59 PM, Manish Pandit wrote:

> I am seeing the refresh interval of 5 seconds instead of 1 second that  
> I thought was the default. However, I want to change it to 1 second -  
> I was wondering if there is a way to do it without bringing any of the  
> nodes down. I have a cluster with 4 nodes and 1 index. Here is the  
> status from 1 of the 4 nodes:
> 
> os: {  
> refresh\_interval: 5000  
> cpu: {  
> vendor: "Intel"  
> model: "Xeon"  
> mhz: 2266  
> total\_cores: 2  
> total\_sockets: 2  
> cores\_per\_socket: 16  
> cache\_size: "8kb"  
> cache\_size\_in\_bytes: 8192  
> }  
> mem: {  
> total: "3.9gb"  
> total\_in\_bytes: 4194304000  
> }  
> swap: {  
> total: "1.9gb"  
> total\_in\_bytes: 2097434624  
> }  
> }
> 
> Thanks - I appreciate your help!
> 
> -cheers,  
> Manish

---

<div class="post-metadata">

**Author:** ![Eran\_Eidinger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eran_eidinger/32/44831_2.png) [@Eran\_Eidinger](https://discuss.elastic.co/u/Eran_Eidinger)\
**Post date:** [July 3, 2013, 1:55pm UTC](https://discuss.elastic.co/t/changing-the-refresh-interval-on-running-nodes/4544/4 "2013-07-03T13:55:44Z")

</div>

Where are the defaults listed?

I can't find them in the elasticsearch.yml file or on the admin indices updates settings doc page.

---

<div class="post-metadata">

**Author:** ![radu\_gheorghe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/radu_gheorghe/32/556_2.png) [@radu\_gheorghe](https://discuss.elastic.co/u/radu_gheorghe)\
**Post date:** [July 3, 2013, 2:17pm UTC](https://discuss.elastic.co/t/changing-the-refresh-interval-on-running-nodes/4544/5 "2013-07-03T14:17:14Z")

</div>

On Wed, Jul 3, 2013 at 4:55 PM, eranid [eranid@gmail.com](mailto:eranid@gmail.com) wrote:

> Where are the defaults listed?

For refresh interval the defaults are here:

> **[Elastic — The Search AI Company](https://www.elastic.co)**
>
> Power insights and outcomes with The Elastic Search AI Platform. See into your data and find answers that matter with enterprise solutions designed to help you accelerate time to insight. Try Elastic ...

## Best regards, Radu

[http://sematext.com/](http://sematext.com/) -- Elasticsearch -- Solr -- Lucene

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Eran\_Eidinger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eran_eidinger/32/44831_2.png) [@Eran\_Eidinger](https://discuss.elastic.co/u/Eran_Eidinger)\
**Post date:** [July 3, 2013, 2:50pm UTC](https://discuss.elastic.co/t/changing-the-refresh-interval-on-running-nodes/4544/6 "2013-07-03T14:50:06Z")

</div>

Awesome! Thanks Radu!

which should help my io-waits if it is due to lots of (re)indexing? refresh\_interval or index.translog.flush\_threshold fields?

Incidentally, do you happen to know where I can find index.translog defaults?

---

<div class="post-metadata">

**Author:** ![radu\_gheorghe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/radu_gheorghe/32/556_2.png) [@radu\_gheorghe](https://discuss.elastic.co/u/radu_gheorghe)\
**Post date:** [July 4, 2013, 6:56am UTC](https://discuss.elastic.co/t/changing-the-refresh-interval-on-running-nodes/4544/7 "2013-07-04T06:56:20Z")

</div>

On Wed, Jul 3, 2013 at 5:50 PM, eranid [eranid@gmail.com](mailto:eranid@gmail.com) wrote:

> Awesome! Thanks Radu!

You're welcome 🙂

> which should help my io-waits if it is due to lots of (re)indexing?  
> refresh\_interval or index.translog.flush\_threshold fields?

I would assume the translog settings, but merge settings have a lot more to  
do with that. You can limit the impact of merging via store  
throttling[http://www.elasticsearch.org/guide/reference/index-modules/store/](http://www.elasticsearch.org/guide/reference/index-modules/store/),  
which will make your merges take longer, but with less load.

However, in my experience, increasing refresh\_interval had the biggest  
impact on indexing performance (after using the bulk  
api[http://www.elasticsearch.org/guide/reference/api/bulk/](http://www.elasticsearch.org/guide/reference/api/bulk/)).  
So I guess there's no getting away from benchmarking and monitoring to see  
what fits you best.

> Incidentally, do you happen to know where I can find index.translog  
> defaults?

Yes, it's in the translog settings page:

> **[Elastic — The Search AI Company](https://www.elastic.co)**
>
> Power insights and outcomes with The Elastic Search AI Platform. See into your data and find answers that matter with enterprise solutions designed to help you accelerate time to insight. Try Elastic ...

## Best regards, Radu

[http://sematext.com/](http://sematext.com/) -- Elasticsearch -- Solr -- Lucene

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 2:28am UTC](https://discuss.elastic.co/t/changing-the-refresh-interval-on-running-nodes/4544/8 "2017-07-06T02:28:16Z")

</div>


