# Disable replica shard on cold data node?

**URL:** <https://discuss.elastic.co/t/disable-replica-shard-on-cold-data-node/257844>\
**Category:** Elasticsearch\
**Created:** [December 7, 2020, 12:16pm UTC](https://discuss.elastic.co/t/disable-replica-shard-on-cold-data-node/257844 "2020-12-07T12:16:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![diecode](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@diecode](https://discuss.elastic.co/u/diecode)\
**Post date:** [December 7, 2020, 12:16pm UTC](https://discuss.elastic.co/t/disable-replica-shard-on-cold-data-node/257844/1 "2020-12-07T12:16:07Z")

</div>

Hey,

I have 3 elasticsearch nodes (2 hot and 1 cold\_data at the moment). I receive logs from logstash and store them in hot nodes. I would like move "old" logs with ILM to cold\_data nodes, but when I start cold\_data node, then all hot nodes are rebalancing and put some replica shards to cold\_data node.

I tried `cluster.routing.allocation.exclude._ip: "cold_data_node_ip"` in cold data node config, but ILM cannot move the primary shards too to node.

How can I disable that, cluster do not move replica shard to cold data node?

---

<div class="post-metadata">

**Author:** ![juanjose.garoz.next](https://avatars.discourse-cdn.com/v4/letter/j/919ad9/32.png) [@juanjose.garoz.next](https://discuss.elastic.co/u/juanjose.garoz.next)\
**Post date:** [December 7, 2020, 1:42pm UTC](https://discuss.elastic.co/t/disable-replica-shard-on-cold-data-node/257844/2 "2020-12-07T13:42:38Z")

</div>

you need to filter at index level

index.routing.allocation.exclude.\_name

> **[Shard Allocation Filtering | Elasticsearch Reference \[6.8\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/shard-allocation-filtering.html)**

and when data pass to cold phase remove filter .

---

<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 4, 2021, 1:42pm UTC](https://discuss.elastic.co/t/disable-replica-shard-on-cold-data-node/257844/3 "2021-01-04T13:42:40Z")

</div>

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