# Index stats store size is not refreshed immediately after flush

**URL:** <https://discuss.elastic.co/t/index-stats-store-size-is-not-refreshed-immediately-after-flush/146929>\
**Category:** Elasticsearch\
**Created:** [September 1, 2018, 1:38am UTC](https://discuss.elastic.co/t/index-stats-store-size-is-not-refreshed-immediately-after-flush/146929 "2018-09-01T01:38:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![taylorchu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/taylorchu/32/35043_2.png) [@taylorchu](https://discuss.elastic.co/u/taylorchu)\
**Post date:** [September 1, 2018, 1:38am UTC](https://discuss.elastic.co/t/index-stats-store-size-is-not-refreshed-immediately-after-flush/146929/1 "2018-09-01T01:38:22Z")

</div>

After testing when index store size is updated after flushing, it seems like the lag is around 10s. Is there an elasticsearch api that can immediately refresh the store size?

There is another related issue without answers: [Stats values lags behind index document updates](https://discuss.elastic.co/t/stats-values-lags-behind-index-document-updates/90491)

Thanks!

```auto
indexer_1 | time="2018-09-01T01:23:26Z" level=warning msg="get sample shard size" shard_size=4045893 stream=suggestions
indexer_1 | time="2018-09-01T01:23:27Z" level=warning msg="get sample shard size" shard_size=4045893 stream=suggestions
indexer_1 | time="2018-09-01T01:23:28Z" level=warning msg="get sample shard size" shard_size=4045893 stream=suggestions
indexer_1 | time="2018-09-01T01:23:29Z" level=warning msg="get sample shard size" shard_size=4045893 stream=suggestions
indexer_1 | time="2018-09-01T01:23:30Z" level=warning msg="get sample shard size" shard_size=4045893 stream=suggestions
indexer_1 | time="2018-09-01T01:23:31Z" level=warning msg="get sample shard size" shard_size=4045893 stream=suggestions
indexer_1 | time="2018-09-01T01:23:32Z" level=warning msg="get sample shard size" shard_size=4045893 stream=suggestions
indexer_1 | time="2018-09-01T01:23:33Z" level=warning msg="get sample shard size" shard_size=4045893 stream=suggestions
indexer_1 | time="2018-09-01T01:23:34Z" level=warning msg="get sample shard size" shard_size=4045893 stream=suggestions
indexer_1 | time="2018-09-01T01:23:35Z" level=warning msg="get sample shard size" shard_size=4045893 stream=suggestions
indexer_1 | time="2018-09-01T01:23:36Z" level=warning msg="get sample shard size" shard_size=7609507 stream=suggestions
indexer_1 | time="2018-09-01T01:23:37Z" level=warning msg="get sample shard size" shard_size=7609507 stream=suggestions
indexer_1 | time="2018-09-01T01:23:38Z" level=warning msg="get sample shard size" shard_size=7609507 stream=suggestions
indexer_1 | time="2018-09-01T01:23:39Z" level=warning msg="get sample shard size" shard_size=7609507 stream=suggestions
indexer_1 | time="2018-09-01T01:23:40Z" level=warning msg="get sample shard size" shard_size=7609507 stream=suggestions
indexer_1 | time="2018-09-01T01:23:41Z" level=warning msg="get sample shard size" shard_size=7609507 stream=suggestions
indexer_1 | time="2018-09-01T01:23:42Z" level=warning msg="get sample shard size" shard_size=7609507 stream=suggestions
indexer_1 | time="2018-09-01T01:23:43Z" level=warning msg="get sample shard size" shard_size=7609507 stream=suggestions
indexer_1 | time="2018-09-01T01:23:44Z" level=warning msg="get sample shard size" shard_size=7609507 stream=suggestions
indexer_1 | time="2018-09-01T01:23:45Z" level=warning msg="get sample shard size" shard_size=7609507 stream=suggestions

```

---

<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:** [September 29, 2018, 1:38am UTC](https://discuss.elastic.co/t/index-stats-store-size-is-not-refreshed-immediately-after-flush/146929/2 "2018-09-29T01:38:26Z")

</div>

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