# Number of Open Files - Calculation

**URL:** <https://discuss.elastic.co/t/number-of-open-files-calculation/5951>\
**Category:** Elasticsearch\
**Created:** [November 23, 2011, 10:23am UTC](https://discuss.elastic.co/t/number-of-open-files-calculation/5951 "2011-11-23T10:23:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Sharma](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@Rahul\_Sharma](https://discuss.elastic.co/u/Rahul_Sharma)\
**Post date:** [November 23, 2011, 10:23am UTC](https://discuss.elastic.co/t/number-of-open-files-calculation/5951/1 "2011-11-23T10:23:35Z")

</div>

Hi,

Does ES opens each of the indices at the startup (When I use FS)?  
Or it opens on demand, when there is a query or indexing request fired.

When I look at the list of open files it gave me an impression that it  
opens all existing index file segments. If its true than we are going to  
hit limit pretty fast irrespective of its usage as the no of indices grows.

Is there any formula by which I can determine the no of open files needed  
based on no of indices, shards, volume of data etc?

Thanks  
Rahul

---

<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, 3:47am UTC](https://discuss.elastic.co/t/number-of-open-files-calculation/5951/2 "2017-07-06T03:47:42Z")

</div>


