# Possible to temporarily lock cluster from re-allocating?

**URL:** <https://discuss.elastic.co/t/possible-to-temporarily-lock-cluster-from-re-allocating/4821>\
**Category:** Elasticsearch\
**Created:** [July 8, 2011, 5:45pm UTC](https://discuss.elastic.co/t/possible-to-temporarily-lock-cluster-from-re-allocating/4821 "2011-07-08T17:45:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ppearcy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppearcy/32/980_2.png) [@ppearcy](https://discuss.elastic.co/u/ppearcy)\
**Post date:** [July 8, 2011, 5:45pm UTC](https://discuss.elastic.co/t/possible-to-temporarily-lock-cluster-from-re-allocating/4821/1 "2011-07-08T17:45:54Z")

</div>

Hey,  
Don't think this is possible, but wanted to check. There is a  
performance hit when we remove a machine from the cluster due to shard  
reallocation and cold shards coming online. I currently have shard  
allocations throttled, with concurrent\_recoveries: 1 and  
concurrent\_streams: 1.

Our response times in a steady state are 25-30ms with maxes at 1-2  
seconds. During shard reallocation, this increases by 10x, which isn't  
bad, but my clients have gotten spoiled.

What I'd like to do is send a command to the cluster to tell it not to  
re-allocate any shards for some amount of time while a server is taken  
offline for maint, since I know that any re-allocations will pretty  
much be wasted work. Is this doable in 16.2 and if not would others  
consider this a viable feature?

This would mitigate the performance hit when the machine is removed,  
but I'd still expect some hit when it is added back.

Thanks,  
Paul

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [July 8, 2011, 9:27pm UTC](https://discuss.elastic.co/t/possible-to-temporarily-lock-cluster-from-re-allocating/4821/2 "2011-07-08T21:27:18Z")

</div>

Agreed!, I heard it from several users as well... . Its tricky business, but there should be an option for that. Open an issue (I don't think there is one). Requires some thinking, but doable.

On Friday, July 8, 2011 at 8:45 PM, Paul wrote:

> Hey,  
> Don't think this is possible, but wanted to check. There is a  
> performance hit when we remove a machine from the cluster due to shard  
> reallocation and cold shards coming online. I currently have shard  
> allocations throttled, with concurrent\_recoveries: 1 and  
> concurrent\_streams: 1.
> 
> Our response times in a steady state are 25-30ms with maxes at 1-2  
> seconds. During shard reallocation, this increases by 10x, which isn't  
> bad, but my clients have gotten spoiled.
> 
> What I'd like to do is send a command to the cluster to tell it not to  
> re-allocate any shards for some amount of time while a server is taken  
> offline for maint, since I know that any re-allocations will pretty  
> much be wasted work. Is this doable in 16.2 and if not would others  
> consider this a viable feature?
> 
> This would mitigate the performance hit when the machine is removed,  
> but I'd still expect some hit when it is added back.
> 
> Thanks,  
> Paul

---

<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:** [July 6, 2017, 4:01am UTC](https://discuss.elastic.co/t/possible-to-temporarily-lock-cluster-from-re-allocating/4821/3 "2017-07-06T04:01:12Z")

</div>

Closed on July 6, 2017, 4:01am UTC


