# Elasticsearch static config of action.auto\_create\_index

**URL:** <https://discuss.elastic.co/t/elasticsearch-static-config-of-action-auto-create-index/56545>\
**Category:** Elasticsearch\
**Created:** [July 27, 2016, 4:03pm UTC](https://discuss.elastic.co/t/elasticsearch-static-config-of-action-auto-create-index/56545 "2016-07-27T16:03:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhughes](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@mhughes](https://discuss.elastic.co/u/mhughes)\
**Post date:** [July 27, 2016, 4:03pm UTC](https://discuss.elastic.co/t/elasticsearch-static-config-of-action-auto-create-index/56545/1 "2016-07-27T16:03:14Z")

</div>

I'm trying to understand the rules governing what I'd best call "static config". As an example, see: `action.auto_create_index`.

The docs say:

> Automatic index creation can be disabled by setting  
> action.auto\_create\_index to false in the config file of all nodes.

1. so what if I have it on 90% of the nodes? How does this config get processed? It's just the last node that joins the cluster affects these settings?
2. is there any way to tell ES to read this config without requiring a reboot of ES? Kind of stinks to have to do a rolling restart of the entire cluster to affect this setting.

---

<div class="post-metadata">

**Author:** ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)\
**Post date:** [July 28, 2016, 11:38am UTC](https://discuss.elastic.co/t/elasticsearch-static-config-of-action-auto-create-index/56545/2 "2016-07-28T11:38:05Z")

</div>

We've been discussing whether this setting should become dynamic [here](https://github.com/elastic/elasticsearch/issues/7513). It most likely will.

About having different values on different nodes, the node that receives the index request will first check the setting value and ask the master to create the index if necessary. That means that it all depends on which setting value the node that you hit with your index request has.

---

<div class="post-metadata">

**Author:** ![itplayer](https://avatars.discourse-cdn.com/v4/letter/i/d26b3c/32.png) [@itplayer](https://discuss.elastic.co/u/itplayer)\
**Post date:** [August 28, 2016, 12:11pm UTC](https://discuss.elastic.co/t/elasticsearch-static-config-of-action-auto-create-index/56545/3 "2016-08-28T12:11:40Z")

</div>

So if the master node set auto\_create\_index:false, but my java application using node client that config without auto\_create\_index setting, what happend?

In my experiment, the index will automatically created. Is this normal?  
I thought the whole cluster will follow the master node decision(setting) not just depends on which node receive the request.

---

<div class="post-metadata">

**Author:** ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)\
**Post date:** [August 29, 2016, 9:16am UTC](https://discuss.elastic.co/t/elasticsearch-static-config-of-action-auto-create-index/56545/4 "2016-08-29T09:16:09Z")

</div>

All nodes need to have the same value for a cluster setting.

---

<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 5, 2017, 10:24pm UTC](https://discuss.elastic.co/t/elasticsearch-static-config-of-action-auto-create-index/56545/5 "2017-07-05T22:24:29Z")

</div>


