# Update settings api ignoring index.refresh\_interval

**URL:** <https://discuss.elastic.co/t/update-settings-api-ignoring-index-refresh-interval/10826>\
**Category:** Elasticsearch\
**Created:** [February 20, 2013, 9:30pm UTC](https://discuss.elastic.co/t/update-settings-api-ignoring-index-refresh-interval/10826 "2013-02-20T21:30:37Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Telvis\_Calhoun\_Jr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/telvis_calhoun_jr/32/1792_2.png) [@Telvis\_Calhoun\_Jr](https://discuss.elastic.co/u/Telvis_Calhoun_Jr)\
**Post date:** [February 20, 2013, 9:30pm UTC](https://discuss.elastic.co/t/update-settings-api-ignoring-index-refresh-interval/10826/1 "2013-02-20T21:30:37Z")

</div>

I see the following in the logs when I attempt to update the refresh  
settings for an index. I'm running "0.20.1". Isn't index.refresh\_interval  
configurable?

[2013-02-20 16:12:59,115][WARN][cluster.metadata] [] [] ignoring  
non dynamic index level settings for open indices: [index.refresh\_interval]

--  
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:** ![drewr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drewr/32/7803_2.png) [@drewr](https://discuss.elastic.co/u/drewr)\
**Post date:** [February 20, 2013, 9:49pm UTC](https://discuss.elastic.co/t/update-settings-api-ignoring-index-refresh-interval/10826/2 "2013-02-20T21:49:40Z")

</div>

Telvis Calhoun Jr. wrote:

> I see the following in the logs when I attempt to update the refresh  
> settings for an index. I'm running "0.20.1". Isn't  
> index.refresh\_interval configurable?

It is configurable. What command are you running?

> [2013-02-20 16:12:59,115][WARN][cluster.metadata] ignoring non  
> dynamic index level settings for open indices:  
> [index.refresh\_interval]

-Drew

--  
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:** ![Telvis\_Calhoun\_Jr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/telvis_calhoun_jr/32/1792_2.png) [@Telvis\_Calhoun\_Jr](https://discuss.elastic.co/u/Telvis_Calhoun_Jr)\
**Post date:** [February 20, 2013, 11:38pm UTC](https://discuss.elastic.co/t/update-settings-api-ignoring-index-refresh-interval/10826/3 "2013-02-20T23:38:29Z")

</div>

curl -XPUT hostname:9200/index-20130220/\_settings -d '{  
"index" : {  
"refresh\_interval" : "10s"  
}  
}'

The current setting is 900s which is specified in an index template. The  
update works on my test box but it fails on our larger cluster. The only  
other update setting I've done is to set  
index.routing.allocation.total\_shards\_per\_node to 2 - which worked fine.

On Wednesday, February 20, 2013 4:49:40 PM UTC-5, Drew Raines wrote:

> Telvis Calhoun Jr. wrote:
> 
> > I see the following in the logs when I attempt to update the refresh  
> > settings for an index. I'm running "0.20.1". Isn't  
> > index.refresh\_interval configurable?
> 
> It is configurable. What command are you running?
> 
> > [2013-02-20 16:12:59,115][WARN][cluster.metadata] ignoring non  
> > dynamic index level settings for open indices:  
> > [index.refresh\_interval]
> 
> -Drew

--  
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:** ![Telvis\_Calhoun\_Jr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/telvis_calhoun_jr/32/1792_2.png) [@Telvis\_Calhoun\_Jr](https://discuss.elastic.co/u/Telvis_Calhoun_Jr)\
**Post date:** [February 21, 2013, 5:25pm UTC](https://discuss.elastic.co/t/update-settings-api-ignoring-index-refresh-interval/10826/4 "2013-02-21T17:25:15Z")

</div>

Just to follow up. On my local 1-node cluster test I see a log  
"index.shard.service updating refresh\_interval from [15m] to [10s]" but on  
the cluster I only see the cluster.metadata error. My setup has designated  
'master' nodes with data=false, master=true and 'data' nodes with  
data=true, master=false. I'm send the request to a master. The data nodes  
have rivers enabled for ingest. The masters have river=_none_. I tried  
restarting all the nodes in cluster but that didn't fix it.

The cluster state is GREEN and its indexing data fine.

On Wednesday, February 20, 2013 6:38:29 PM UTC-5, Telvis Calhoun Jr. wrote:

> curl -XPUT hostname:9200/index-20130220/\_settings -d '{  
> "index" : {  
> "refresh\_interval" : "10s"  
> }  
> }'
> 
> The current setting is 900s which is specified in an index template. The  
> update works on my test box but it fails on our larger cluster. The only  
> other update setting I've done is to set  
> index.routing.allocation.total\_shards\_per\_node to 2 - which worked fine.
> 
> On Wednesday, February 20, 2013 4:49:40 PM UTC-5, Drew Raines wrote:
> 
> > Telvis Calhoun Jr. wrote:
> > 
> > > I see the following in the logs when I attempt to update the refresh  
> > > settings for an index. I'm running "0.20.1". Isn't  
> > > index.refresh\_interval configurable?
> > 
> > It is configurable. What command are you running?
> > 
> > > [2013-02-20 16:12:59,115][WARN][cluster.metadata] ignoring non  
> > > dynamic index level settings for open indices:  
> > > [index.refresh\_interval]
> > 
> > -Drew

--  
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:** ![drewr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drewr/32/7803_2.png) [@drewr](https://discuss.elastic.co/u/drewr)\
**Post date:** [February 22, 2013, 3:25pm UTC](https://discuss.elastic.co/t/update-settings-api-ignoring-index-refresh-interval/10826/5 "2013-02-22T15:25:59Z")

</div>

Telvis Calhoun Jr. wrote:

> > > > I see the following in the logs when I attempt to update the refresh  
> > > > settings for an index. I'm running "0.20.1". Isn't  
> > > > index.refresh\_interval configurable?

[...]

> > curl -XPUT hostname:9200/index-20130220/\_settings -d '{  
> > "index" : {  
> > "refresh\_interval" : "10s"  
> > }  
> > }'

This command should work fine (and clearly does on your local  
machine). I'm not quite sure how you're getting the warning, or why  
it was thinking the index name was `index.refresh\_interval', but  
Martijn fixed a bug[1] in that exact section of code a couple weeks  
ago. Any chance you can upgrade to 0.20.5 and see if it helps?

-Drew

Footnotes:  
[1] [Fail when updating non dynamic index setting for an open index. · Issue #2647 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/2647)

--  
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:** ![Telvis\_Calhoun\_Jr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/telvis_calhoun_jr/32/1792_2.png) [@Telvis\_Calhoun\_Jr](https://discuss.elastic.co/u/Telvis_Calhoun_Jr)\
**Post date:** [February 22, 2013, 4:31pm UTC](https://discuss.elastic.co/t/update-settings-api-ignoring-index-refresh-interval/10826/6 "2013-02-22T16:31:41Z")

</div>

I'll upgrade and get back to you. Thank you for your help.

On Fri, Feb 22, 2013 at 10:25 AM, Drew Raines [aaraines@gmail.com](mailto:aaraines@gmail.com) wrote:

> Telvis Calhoun Jr. wrote:
> 
> > > > > I see the following in the logs when I attempt to update the refresh  
> > > > > settings for an index. I'm running "0.20.1". Isn't  
> > > > > index.refresh\_interval configurable?
> 
> [...]
> 
> > > curl -XPUT hostname:9200/index-20130220/\_settings -d '{  
> > > "index" : {  
> > > "refresh\_interval" : "10s"  
> > > }  
> > > }'
> 
> This command should work fine (and clearly does on your local  
> machine). I'm not quite sure how you're getting the warning, or why  
> it was thinking the index name was `index.refresh\_interval', but  
> Martijn fixed a bug[1] in that exact section of code a couple weeks  
> ago. Any chance you can upgrade to 0.20.5 and see if it helps?
> 
> -Drew
> 
> Footnotes:  
> [1] [Fail when updating non dynamic index setting for an open index. · Issue #2647 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/2647)
> 
> --  
> 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).

--  
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:** ![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:** [February 22, 2013, 6:37pm UTC](https://discuss.elastic.co/t/update-settings-api-ignoring-index-refresh-interval/10826/7 "2013-02-22T18:37:26Z")

</div>

I can see how this might happen on a master, with non data node. I will open an issue: [Index dynamic settings might not be allowed to be applied on master with no data node · Issue #2675 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/2675). Its because of the master/non data node.

On Feb 22, 2013, at 5:31 PM, Telvis Calhoun Jr. [telvis07@gmail.com](mailto:telvis07@gmail.com) wrote:

> I'll upgrade and get back to you. Thank you for your help.
> 
> On Fri, Feb 22, 2013 at 10:25 AM, Drew Raines [aaraines@gmail.com](mailto:aaraines@gmail.com) wrote:
> 
> > Telvis Calhoun Jr. wrote:
> > 
> > > > > > I see the following in the logs when I attempt to update the refresh  
> > > > > > settings for an index. I'm running "0.20.1". Isn't  
> > > > > > index.refresh\_interval configurable?
> > 
> > [...]
> > 
> > > > curl -XPUT hostname:9200/index-20130220/\_settings -d '{  
> > > > "index" : {  
> > > > "refresh\_interval" : "10s"  
> > > > }  
> > > > }'
> > 
> > This command should work fine (and clearly does on your local  
> > machine). I'm not quite sure how you're getting the warning, or why  
> > it was thinking the index name was `index.refresh\_interval', but  
> > Martijn fixed a bug[1] in that exact section of code a couple weeks  
> > ago. Any chance you can upgrade to 0.20.5 and see if it helps?
> > 
> > -Drew
> > 
> > Footnotes:  
> > [1] [Fail when updating non dynamic index setting for an open index. · Issue #2647 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/2647)
> > 
> > --  
> > 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).
> 
> --  
> 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).

--  
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:** ![Telvis\_Calhoun\_Jr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/telvis_calhoun_jr/32/1792_2.png) [@Telvis\_Calhoun\_Jr](https://discuss.elastic.co/u/Telvis_Calhoun_Jr)\
**Post date:** [February 25, 2013, 3:31pm UTC](https://discuss.elastic.co/t/update-settings-api-ignoring-index-refresh-interval/10826/8 "2013-02-25T15:31:33Z")

</div>

Thank you for looking into this.

On Friday, February 22, 2013 1:37:26 PM UTC-5, kimchy wrote:

> I can see how this might happen on a master, with non data node. I will  
> open an issue: [Index dynamic settings might not be allowed to be applied on master with no data node · Issue #2675 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/2675).  
> Its because of the master/non data node.
> 
> On Feb 22, 2013, at 5:31 PM, Telvis Calhoun Jr. \<[telv...@gmail.com](mailto:telv...@gmail.com)\<javascript:\>\>  
> wrote:
> 
> > I'll upgrade and get back to you. Thank you for your help.
> > 
> > On Fri, Feb 22, 2013 at 10:25 AM, Drew Raines \<[aara...@gmail.com](mailto:aara...@gmail.com)\<javascript:\>\>  
> > wrote:
> > 
> > > Telvis Calhoun Jr. wrote:
> > > 
> > > > > > > I see the following in the logs when I attempt to update the  
> > > > > > > refresh  
> > > > > > > settings for an index. I'm running "0.20.1". Isn't  
> > > > > > > index.refresh\_interval configurable?
> > > 
> > > [...]
> > > 
> > > > > curl -XPUT hostname:9200/index-20130220/\_settings -d '{  
> > > > > "index" : {  
> > > > > "refresh\_interval" : "10s"  
> > > > > }  
> > > > > }'
> > > 
> > > This command should work fine (and clearly does on your local  
> > > machine). I'm not quite sure how you're getting the warning, or why  
> > > it was thinking the index name was `index.refresh\_interval', but  
> > > Martijn fixed a bug[1] in that exact section of code a couple weeks  
> > > ago. Any chance you can upgrade to 0.20.5 and see if it helps?
> > > 
> > > -Drew
> > > 
> > > Footnotes:  
> > > [1] [Fail when updating non dynamic index setting for an open index. · Issue #2647 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/2647)
> > > 
> > > --  
> > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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:49am UTC](https://discuss.elastic.co/t/update-settings-api-ignoring-index-refresh-interval/10826/9 "2017-07-06T02:49:41Z")

</div>


