# Node restart - initializing state

**URL:** <https://discuss.elastic.co/t/node-restart-initializing-state/159317>\
**Category:** Elasticsearch\
**Created:** [December 4, 2018, 9:25am UTC](https://discuss.elastic.co/t/node-restart-initializing-state/159317 "2018-12-04T09:25:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HugoP](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hugop/32/43435_2.png) [@HugoP](https://discuss.elastic.co/u/HugoP)\
**Post date:** [December 4, 2018, 9:25am UTC](https://discuss.elastic.co/t/node-restart-initializing-state/159317/1 "2018-12-04T09:25:38Z")

</div>

Hi,

I have a question about the recovery mechanism of a shard following a node restart.

Before restarting a node, I always disable the allocation (cluster.routing.allocation.enable = none).

I noticed that when the node is restarted, the shards of the indices for the current day are in the "initializing state". This step only lasts a few minutes and I am wondering what happens during this time.

- Is it the necessary time to apply the modifications which happened during the restart of the node ?
- Why do I see this "initializing state" for the indices of the day only ?

Thanks for your help,

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [December 4, 2018, 1:18pm UTC](https://discuss.elastic.co/t/node-restart-initializing-state/159317/2 "2018-12-04T13:18:27Z")

</div>

All shards go through the `INITIALIZING` state when they are starting, so you probably only see this on today's indices because they spend longer initialising than the other shards, and this is indeed probably due to the need to catch up on what happened while the node was down.

---

<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:** [January 1, 2019, 1:18pm UTC](https://discuss.elastic.co/t/node-restart-initializing-state/159317/3 "2019-01-01T13:18:30Z")

</div>

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