# Tie a shard to a IP

**URL:** <https://discuss.elastic.co/t/tie-a-shard-to-a-ip/11935>\
**Category:** Elasticsearch\
**Created:** [May 13, 2013, 9:57am UTC](https://discuss.elastic.co/t/tie-a-shard-to-a-ip/11935 "2013-05-13T09:57:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ban\_Mido](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@Ban\_Mido](https://discuss.elastic.co/u/Ban_Mido)\
**Post date:** [May 13, 2013, 9:57am UTC](https://discuss.elastic.co/t/tie-a-shard-to-a-ip/11935/1 "2013-05-13T09:57:17Z")

</div>

Hi ,

I am using elasticsearch .90.  
Is there anyway i can tell ES to only allocate a particular shard if and  
index to a particular IP or machine only ?

Some of the machines in the network dont have much disk space , so i want  
to make sure shards capable of eating a lot is moved to a more safer  
machine.

Thanks  
Vineeth

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Itamar\_Syn\_Hershko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/itamar_syn_hershko/32/725_2.png) [@Itamar\_Syn\_Hershko](https://discuss.elastic.co/u/Itamar_Syn_Hershko)\
**Post date:** [May 13, 2013, 9:59am UTC](https://discuss.elastic.co/t/tie-a-shard-to-a-ip/11935/2 "2013-05-13T09:59:58Z")

</div>

You can't allocate one shard to an IP, but you can allocate one index on a  
specific IP, see

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Your sharding strategy needs to be such that all shards of an index are of  
a similar size

On Mon, May 13, 2013 at 12:57 PM, Ban Mido [banmidobeyondtime@gmail.com](mailto:banmidobeyondtime@gmail.com)wrote:

> Hi ,
> 
> I am using elasticsearch .90.  
> Is there anyway i can tell ES to only allocate a particular shard if and  
> index to a particular IP or machine only ?
> 
> Some of the machines in the network dont have much disk space , so i want  
> to make sure shards capable of eating a lot is moved to a more safer  
> machine.
> 
> Thanks  
> Vineeth
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ban\_Mido](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@Ban\_Mido](https://discuss.elastic.co/u/Ban_Mido)\
**Post date:** [May 13, 2013, 10:08am UTC](https://discuss.elastic.co/t/tie-a-shard-to-a-ip/11935/3 "2013-05-13T10:08:41Z")

</div>

Thanks man ,

This will work for me 🙂

~Mido

On Mon, May 13, 2013 at 3:29 PM, Itamar Syn-Hershko [itamar@code972.com](mailto:itamar@code972.com)wrote:

> You can't allocate one shard to an IP, but you can allocate one index on a  
> specific IP, see  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/index-modules/allocation/)
> 
> Your sharding strategy needs to be such that all shards of an index are of  
> a similar size
> 
> On Mon, May 13, 2013 at 12:57 PM, Ban Mido [banmidobeyondtime@gmail.com](mailto:banmidobeyondtime@gmail.com)wrote:
> 
> > Hi ,
> > 
> > I am using elasticsearch .90.  
> > Is there anyway i can tell ES to only allocate a particular shard if and  
> > index to a particular IP or machine only ?
> > 
> > Some of the machines in the network dont have much disk space , so i want  
> > to make sure shards capable of eating a lot is moved to a more safer  
> > machine.
> > 
> > Thanks  
> > Vineeth
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:36am UTC](https://discuss.elastic.co/t/tie-a-shard-to-a-ip/11935/4 "2017-07-06T02:36:55Z")

</div>

Closed on July 6, 2017, 2:36am UTC


