# How does reallocation work?

**URL:** <https://discuss.elastic.co/t/how-does-reallocation-work/115077>\
**Category:** Elasticsearch\
**Created:** [January 11, 2018, 11:52am UTC](https://discuss.elastic.co/t/how-does-reallocation-work/115077 "2018-01-11T11:52:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bruce88](https://avatars.discourse-cdn.com/v4/letter/b/b3f665/32.png) [@bruce88](https://discuss.elastic.co/u/bruce88)\
**Post date:** [January 11, 2018, 11:52am UTC](https://discuss.elastic.co/t/how-does-reallocation-work/115077/1 "2018-01-11T11:52:37Z")

</div>

As we know, ES cluster will do reallocation when nodes add/remove. How does reallocation work? During reallocation, can we still query data and inject new data? Will query or new injection block the reallocation?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 11, 2018, 3:07pm UTC](https://discuss.elastic.co/t/how-does-reallocation-work/115077/2 "2018-01-11T15:07:44Z")

</div>

> Will query or new injection block the reallocation?

No. It will work as you would expect.

The new version of the shard will be marked as available only when ready.

---

<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:** [February 8, 2018, 3:08pm UTC](https://discuss.elastic.co/t/how-does-reallocation-work/115077/3 "2018-02-08T15:08:11Z")

</div>

Closed on February 8, 2018, 3:08pm UTC

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