# Use\_disk\_threshold defaulting to False

**URL:** <https://discuss.elastic.co/t/use-disk-threshold-defaulting-to-false/179972>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [May 7, 2019, 12:36pm UTC](https://discuss.elastic.co/t/use-disk-threshold-defaulting-to-false/179972 "2019-05-07T12:36:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JamesNotJamez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jamesnotjamez/32/45736_2.png) [@JamesNotJamez](https://discuss.elastic.co/u/JamesNotJamez)\
**Post date:** [May 7, 2019, 12:36pm UTC](https://discuss.elastic.co/t/use-disk-threshold-defaulting-to-false/179972/1 "2019-05-07T12:36:28Z")

</div>

Hi,

If I create a deployment then update the elasticsearch instances wth the API (not the UI) I can see that the use\_disk\_threshold is being changed from true to false, even though I am not specifying this anywhere in my config and from what I can see in the documentation it should default to true. Any idea why this change is happening?  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/d/0d3eff3e3bc1acf5ca8458b6ec7698de60d4dfbf.png)

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Alex\_Piggott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_piggott/32/11053_2.png) [@Alex\_Piggott](https://discuss.elastic.co/u/Alex_Piggott)\
**Post date:** [May 7, 2019, 1:25pm UTC](https://discuss.elastic.co/t/use-disk-threshold-defaulting-to-false/179972/2 "2019-05-07T13:25:46Z")

</div>

Interesting ... looking at the code, that threshold defaults to `false`, so I think the docs are just wrong (note the plan is a `PUT` not a `PATCH` so unspecified parameters are set to their defaults)

I'll create an issue to figure out why the docs and code are inconsistent, thanks for reporting!

---

<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:** [May 21, 2019, 1:27pm UTC](https://discuss.elastic.co/t/use-disk-threshold-defaulting-to-false/179972/3 "2019-05-21T13:27:36Z")

</div>

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