# Migration Plugin - How to change dynamic setting?

**URL:** <https://discuss.elastic.co/t/migration-plugin-how-to-change-dynamic-setting/85335>\
**Category:** Elasticsearch\
**Created:** [May 11, 2017, 6:41am UTC](https://discuss.elastic.co/t/migration-plugin-how-to-change-dynamic-setting/85335 "2017-05-11T06:41:44Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![german23](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/german23/32/11052_2.png) [@german23](https://discuss.elastic.co/u/german23)\
**Post date:** [May 11, 2017, 6:41am UTC](https://discuss.elastic.co/t/migration-plugin-how-to-change-dynamic-setting/85335/1 "2017-05-11T06:41:44Z")

</div>

Hello,

as we currently planning our upgrade from 2.4 to 5.x, we run into some kind of problem regarding our old indices.

```
Index settings
Replaced settings
index.translog.flush_threshold_ops has been replaced by index.translog.flush_threshold_size

```

This message showed up in the migration plugin.

Looking at the index itself we have both settings set:

```
"logstash-2016.11.29" : {
    "settings" : {
      "index" : {
        "refresh_interval" : "30s",
        "translog" : {
          "flush_threshold_ops" : "60000",
          "flush_threshold_size" : "1gb",
          "durability" : "async"
        },

```

So i am curious now of how to "unset" the "threshold\_ops"-settings in order to allow a upgrade to 5.x index?

I tried setting it to "0" or "NULL" - the first one did not change anything, the 2nd did not work.  
Since it is a dynamic setting, i dont think reindexing would be required.

Any feedback is appreciated.

Regards

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 11, 2017, 6:58am UTC](https://discuss.elastic.co/t/migration-plugin-how-to-change-dynamic-setting/85335/2 "2017-05-11T06:58:44Z")

</div>

Don't post pictures please but formatted text. Hardly readable.

---

<div class="post-metadata">

**Author:** ![german23](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/german23/32/11052_2.png) [@german23](https://discuss.elastic.co/u/german23)\
**Post date:** [May 11, 2017, 7:01am UTC](https://discuss.elastic.co/t/migration-plugin-how-to-change-dynamic-setting/85335/3 "2017-05-11T07:01:57Z")

</div>

thanks for the hint - updated the post

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 11, 2017, 7:22am UTC](https://discuss.elastic.co/t/migration-plugin-how-to-change-dynamic-setting/85335/4 "2017-05-11T07:22:26Z")

</div>

You can update to `null` an index settings in 5.x series.  
In 2.x you have to set it to the default values but I'm unsure if this will solve the problem you are facing.

Can you try with a non production cluster? Create in 2.x an index with that setting and then update to 5.x without changing that setting and see what are the error messages if any.

---

<div class="post-metadata">

**Author:** ![german23](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/german23/32/11052_2.png) [@german23](https://discuss.elastic.co/u/german23)\
**Post date:** [May 11, 2017, 7:47am UTC](https://discuss.elastic.co/t/migration-plugin-how-to-change-dynamic-setting/85335/5 "2017-05-11T07:47:22Z")

</div>

Thanks for your response.

I am afraid i cant set it to the default.

Regarding the 2.X documentation the default would be "unlimited" - the update API only allow integer values tho.

I am gonna try it out with an test cluster and let you know the results.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 11, 2017, 8:09am UTC](https://discuss.elastic.co/t/migration-plugin-how-to-change-dynamic-setting/85335/6 "2017-05-11T08:09:41Z")

</div>

The default value is actually `2147483647` (Max INT). But unsure if this helps.

> <https://github.com/elastic/elasticsearch/blob/cb9f7c1da53534b476ee0d55f34acb2ea027112e/src/main/java/org/elasticsearch/index/translog/TranslogService.java#L82>

---

<div class="post-metadata">

**Author:** ![german23](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/german23/32/11052_2.png) [@german23](https://discuss.elastic.co/u/german23)\
**Post date:** [May 11, 2017, 9:50am UTC](https://discuss.elastic.co/t/migration-plugin-how-to-change-dynamic-setting/85335/7 "2017-05-11T09:50:03Z")

</div>

I tried setting it to the max Int value, no changes.

I set up an 2.4.5 cluster and created the index with the setting, migration plugin showed an error, as expected.

I than upgraded the ES on the server to 5.4.0 and after restart the following logs showed up:

```
[2017-05-11T11:10:44,358][INFO][o.e.c.u.IndexFolderUpgrader] [logstash-2016.11.29/1SJ-qAI4SiugEzLx-rfW_Q] upgrading [/es_index/cluster/nodes/0/indices/logstash-2016.11.29] to new naming convention
[2017-05-11T11:10:44,359][INFO][o.e.c.u.IndexFolderUpgrader] [logstash-2016.11.29/1SJ-qAI4SiugEzLx-rfW_Q] moved from [/es_index/cluster/nodes/0/indices/logstash-2016.11.29] to [/es_index/cluster/nodes/0/indices/1SJ-qAI4SiugEzLx-rfW_Q]
[2017-05-11T11:10:44,465][WARN][o.e.c.m.MetaDataIndexUpgradeService] [servername] [logstash-2016.11.29/1SJ-qAI4SiugEzLx-rfW_Q] ignoring unknown index setting: [index.translog.flush_threshold_ops] with value [21483647]; archiving

```

ES did upgrade the index without errors and it still is searchable.

I guess that "solves" my problem here - one can ignore these notifications of the migration plugin.

Thanks for your help here.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 11, 2017, 1:29pm UTC](https://discuss.elastic.co/t/migration-plugin-how-to-change-dynamic-setting/85335/8 "2017-05-11T13:29:25Z")

</div>

I believe you need to set the new setting thought ?

---

<div class="post-metadata">

**Author:** ![german23](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/german23/32/11052_2.png) [@german23](https://discuss.elastic.co/u/german23)\
**Post date:** [May 12, 2017, 5:32am UTC](https://discuss.elastic.co/t/migration-plugin-how-to-change-dynamic-setting/85335/9 "2017-05-12T05:32:56Z")

</div>

Sorry, i dont understand what you mean actually.

The "index.translog.flush\_threshold\_ops" was set before the upgrade to 5.x - the upgrade went fine even tho the migration plugin displayed it otherwise.

After the index was upgraded to 5.x it is no longer possible to set this setting, this message appears:

`{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"unknown setting [index.translog.flush_threshold_ops] did you mean [index.translog.flush_threshold_size]?"}],"type":"illegal_argument_exception","reason":"unknown setting [index.translog.flush_threshold_ops] did you mean [index.translog.flush_threshold_size]?"},`

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 12, 2017, 8:48am UTC](https://discuss.elastic.co/t/migration-plugin-how-to-change-dynamic-setting/85335/10 "2017-05-12T08:48:14Z")

</div>

Sorry if I was unclear.

I meant that you need to set `index.translog.flush_threshold_size` if you want to have the same behavior you had before.

---

<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:** [June 9, 2017, 8:52am UTC](https://discuss.elastic.co/t/migration-plugin-how-to-change-dynamic-setting/85335/11 "2017-06-09T08:52:14Z")

</div>

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