# How to delay allocate data to new added DataNode

**URL:** https://discuss.elastic.co/t/how-to-delay-allocate-data-to-new-added-datanode/116464
**Category:** Elasticsearch
**Created:** [January 22, 2018, 10:02am UTC](https://discuss.elastic.co/t/how-to-delay-allocate-data-to-new-added-datanode/116464 "2018-01-22T10:02:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Jixin](https://avatars.discourse-cdn.com/v4/letter/j/9de053/32.png) [@Jixin](https://discuss.elastic.co/u/Jixin)
#### Post date: [January 22, 2018, 10:02am UTC](https://discuss.elastic.co/t/how-to-delay-allocate-data-to-new-added-datanode/116464/1 "2018-01-22T10:02:56Z")

</div>

Hi guys,

I encountered an issue which is the new added Data Node may not that stable. This node may offline within 5mins after it joined the cluster, and this node will never back online then. So it will cause that some of the shards unassigned.  
I'd like to know if there are some configs I can use to delay, like 5 mins, to allocate data to the new added DataNode.

After reading this doc [https://www.elastic.co/guide/en/elasticsearch/reference/current/rolling-upgrades.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/rolling-upgrades.html), I got an idea that is to disable the allocation before scale up the cluster, then enable it afterward. But I'd like to know if there is an easy way to do this, like how can I delay the allocation to new added data node.

Thank you for your help. 🙂

---

<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 19, 2018, 10:03am UTC](https://discuss.elastic.co/t/how-to-delay-allocate-data-to-new-added-datanode/116464/2 "2018-02-19T10:03:20Z")

</div>

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