# Performance changes when setting index.blocks.write / read\_only?

**URL:** <https://discuss.elastic.co/t/performance-changes-when-setting-index-blocks-write-read-only/152539>\
**Category:** Elasticsearch\
**Created:** [October 15, 2018, 5:17pm UTC](https://discuss.elastic.co/t/performance-changes-when-setting-index-blocks-write-read-only/152539 "2018-10-15T17:17:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamredlus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iamredlus/32/15504_2.png) [@iamredlus](https://discuss.elastic.co/u/iamredlus)\
**Post date:** [October 15, 2018, 5:17pm UTC](https://discuss.elastic.co/t/performance-changes-when-setting-index-blocks-write-read-only/152539/1 "2018-10-15T17:17:08Z")

</div>

Hi,

As part of our timeseries data management, we open new daily indices and ingest to them only once they are opened. Old indices are kept on our hot nodes for an additional day (for faster queries on these monstrous local SSD disks) and then moved to warm nodes. As no more writes to these indices occur, we'd like to release as many resources as possible. Closing the index is not an option, as queries should be executed as quickly as possible (without requiring multiple `index/_open` commands beforehand and `index/_close` commands afterward). We already set `index.refresh_interval` to `-1` to disable index refreshing.

The question is whether index.blocks.read\_only / index.blocks.read\_only\_allow\_delete / index.blocks.write have any effect on the resources required by open indices which are ready to be queried (e.g. writing threads, mapping or other caches, etc).

A [previous question](https://discuss.elastic.co/t/what-happens-inside-index-blocks/9208) from 2012 does not really answer this. The same can be said about [Elasticsearch as a Time Series Data Store](https://www.elastic.co/blog/elasticsearch-as-a-time-series-data-store) and [Managing Elasticsearch time-based indices efficiently](https://www.elastic.co/blog/managing-time-based-indices-efficiently).  
Are these settings only here to allow protection against writing and nothing more?

Enlighten me!  
🙂

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 16, 2018, 7:02am UTC](https://discuss.elastic.co/t/performance-changes-when-setting-index-blocks-write-read-only/152539/2 "2018-10-16T07:02:56Z")

</div>

Hey,

you are right. Those settings are basically only flags in the cluster state, which are checked before read or write operations. They do however not change the nature of the query or its execution path. You still have to have certain files/resources open in order to do a query - those resources are not available when an index is closed, thus a closed index is not searchable.

--Alex

---

<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:** [November 13, 2018, 7:02am UTC](https://discuss.elastic.co/t/performance-changes-when-setting-index-blocks-write-read-only/152539/3 "2018-11-13T07:02:57Z")

</div>

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