# Update Settings: new value of refresh\_interval is not observed without restart (w/ Gist)

**URL:** <https://discuss.elastic.co/t/update-settings-new-value-of-refresh-interval-is-not-observed-without-restart-w-gist/7097>\
**Category:** Elasticsearch\
**Created:** [March 22, 2012, 4:08pm UTC](https://discuss.elastic.co/t/update-settings-new-value-of-refresh-interval-is-not-observed-without-restart-w-gist/7097 "2012-03-22T16:08:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_2](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@David\_2](https://discuss.elastic.co/u/David_2)\
**Post date:** [March 22, 2012, 4:08pm UTC](https://discuss.elastic.co/t/update-settings-new-value-of-refresh-interval-is-not-observed-without-restart-w-gist/7097/1 "2012-03-22T16:08:46Z")

</div>

I've run into a problem that looks like a bug with 0.19.0 and 0.19.1.  
I have a bulk index process that follows the suggested pattern of  
setting refresh\_interval to "-1" during the index and then changing it  
back to "1s" after the index is done. With the 0.19.x versions, I've  
noticed that the dynamically set values of refresh\_interval, while  
they seem to be changed in the settings, are not observed without a  
restart.

See this gist for a series of commands that you can run on a vanilla  
single instance of elastic that recreates this problem:

> <https://gist.github.com/mackd/2159205>

Looks like a bug.

---

<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:** [March 22, 2012, 4:35pm UTC](https://discuss.elastic.co/t/update-settings-new-value-of-refresh-interval-is-not-observed-without-restart-w-gist/7097/2 "2012-03-22T16:35:31Z")

</div>

On Thu, 2012-03-22 at 09:08 -0700, David wrote:

> I've run into a problem that looks like a bug with 0.19.0 and 0.19.1.  
> I have a bulk index process that follows the suggested pattern of  
> setting refresh\_interval to "-1" during the index and then changing it  
> back to "1s" after the index is done. With the 0.19.x versions, I've  
> noticed that the dynamically set values of refresh\_interval, while  
> they seem to be changed in the settings, are not observed without a  
> restart.
> 
> See this gist for a series of commands that you can run on a vanilla  
> single instance of elastic that recreates this problem:
> 
> [recreate problem with updating refresh\_interval at runtime · GitHub](https://gist.github.com/2159205)
> 
> Looks like a bug.

Confirmed - refresh\_interval seems to be ignored completely

Please open an issue

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:** [March 22, 2012, 6:15pm UTC](https://discuss.elastic.co/t/update-settings-new-value-of-refresh-interval-is-not-observed-without-restart-w-gist/7097/3 "2012-03-22T18:15:46Z")

</div>

Opened an issue: [Index Update Settings API does not update settings in real time · Issue #1807 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1807),  
a fix is coming...

On Thu, Mar 22, 2012 at 6:35 PM, Clinton Gormley [clint@traveljury.com](mailto:clint@traveljury.com)wrote:

> On Thu, 2012-03-22 at 09:08 -0700, David wrote:
> 
> > I've run into a problem that looks like a bug with 0.19.0 and 0.19.1.  
> > I have a bulk index process that follows the suggested pattern of  
> > setting refresh\_interval to "-1" during the index and then changing it  
> > back to "1s" after the index is done. With the 0.19.x versions, I've  
> > noticed that the dynamically set values of refresh\_interval, while  
> > they seem to be changed in the settings, are not observed without a  
> > restart.
> > 
> > See this gist for a series of commands that you can run on a vanilla  
> > single instance of elastic that recreates this problem:
> > 
> > [recreate problem with updating refresh\_interval at runtime · GitHub](https://gist.github.com/2159205)
> > 
> > Looks like a bug.
> 
> Confirmed - refresh\_interval seems to be ignored completely
> 
> Please open an issue
> 
> clint

---

<div class="post-metadata">

**Author:** ![David\_2](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@David\_2](https://discuss.elastic.co/u/David_2)\
**Post date:** [March 22, 2012, 6:46pm UTC](https://discuss.elastic.co/t/update-settings-new-value-of-refresh-interval-is-not-observed-without-restart-w-gist/7097/4 "2012-03-22T18:46:47Z")

</div>

Great, thanks!

On Mar 22, 12:15 pm, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> Opened an issue:[Index Update Settings API does not update settings in real time · Issue #1807 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1807),  
> a fix is coming...
> 
> On Thu, Mar 22, 2012 at 6:35 PM, Clinton Gormley [cl...@traveljury.com](mailto:cl...@traveljury.com)wrote:
> 
> > On Thu, 2012-03-22 at 09:08 -0700, David wrote:
> > 
> > > I've run into a problem that looks like a bug with 0.19.0 and 0.19.1.  
> > > I have a bulk index process that follows the suggested pattern of  
> > > setting refresh\_interval to "-1" during the index and then changing it  
> > > back to "1s" after the index is done. With the 0.19.x versions, I've  
> > > noticed that the dynamically set values of refresh\_interval, while  
> > > they seem to be changed in the settings, are not observed without a  
> > > restart.
> 
> > > See this gist for a series of commands that you can run on a vanilla  
> > > single instance of elastic that recreates this problem:
> 
> > > [recreate problem with updating refresh\_interval at runtime · GitHub](https://gist.github.com/2159205)
> 
> > > Looks like a bug.
> 
> > Confirmed - refresh\_interval seems to be ignored completely
> 
> > Please open an issue
> 
> > clint

---

<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, 3:35am UTC](https://discuss.elastic.co/t/update-settings-new-value-of-refresh-interval-is-not-observed-without-restart-w-gist/7097/5 "2017-07-06T03:35:07Z")

</div>


