# Elasticsearch head UNASSIGNED

**URL:** <https://discuss.elastic.co/t/elasticsearch-head-unassigned/14525>\
**Category:** Elasticsearch\
**Created:** [November 21, 2013, 9:51pm UTC](https://discuss.elastic.co/t/elasticsearch-head-unassigned/14525 "2013-11-21T21:51:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohit\_Anchlia](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Mohit\_Anchlia](https://discuss.elastic.co/u/Mohit_Anchlia)\
**Post date:** [November 21, 2013, 9:51pm UTC](https://discuss.elastic.co/t/elasticsearch-head-unassigned/14525/1 "2013-11-21T21:51:39Z")

</div>

I am little confused with elasticsearch head UIs output. I added a new node  
and created a new index "test3" with shard: 5 and replica: 1. I also added  
a routing rule to only make new node the data node for this test. However,  
I am confused with 2 things:

1. head is showing that my index is spread on the old node as well. I  
expect it to be only on the new node
2. Some of the shards are showing UNASSIGNED
3. How to differentiate between a replica and a shard in the UI?

curl -XPUT 10.80.140.86:9200/test3/\_settings -d '{

"index.routing.allocation.include.group1" : "group2"

}'

I am also attaching the screen shot of the UI.

--  
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:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 21, 2013, 10:26pm UTC](https://discuss.elastic.co/t/elasticsearch-head-unassigned/14525/2 "2013-11-21T22:26:06Z")

</div>

Elasticsearch won't store replicas with the primary as it defeats the  
purpose of having a replica. So you will either need to remove your replica  
or your routing for the unassigned shards to clear up.

(Re #3) I think you mean primary and replica, as a shard can be either.  
Primaries have the bold black border in head. You might also want to look  
at the kopf plugin which is a rebuilt version of head.

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 22 November 2013 08:51, Mohit Anchlia [mohitanchlia@gmail.com](mailto:mohitanchlia@gmail.com) wrote:

> I am little confused with elasticsearch head UIs output. I added a new  
> node and created a new index "test3" with shard: 5 and replica: 1. I also  
> added a routing rule to only make new node the data node for this test.  
> However, I am confused with 2 things:
> 
> 1. head is showing that my index is spread on the old node as well. I  
> expect it to be only on the new node
> 2. Some of the shards are showing UNASSIGNED
> 3. How to differentiate between a replica and a shard in the UI?
> 
> curl -XPUT 10.80.140.86:9200/test3/\_settings -d '{
> 
> "index.routing.allocation.include.group1" : "group2"
> 
> }'
> 
> I am also attaching the screen shot of the UI.
> 
> --  
> 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:** ![Mohit\_Anchlia](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Mohit\_Anchlia](https://discuss.elastic.co/u/Mohit_Anchlia)\
**Post date:** [November 21, 2013, 10:42pm UTC](https://discuss.elastic.co/t/elasticsearch-head-unassigned/14525/3 "2013-11-21T22:42:15Z")

</div>

thanks!

On Thu, Nov 21, 2013 at 2:26 PM, Mark Walkom [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)wrote:

> Elasticsearch won't store replicas with the primary as it defeats the  
> purpose of having a replica. So you will either need to remove your replica  
> or your routing for the unassigned shards to clear up.
> 
> (Re #3) I think you mean primary and replica, as a shard can be either.  
> Primaries have the bold black border in head. You might also want to look  
> at the kopf plugin which is a rebuilt version of head.
> 
> Regards,  
> Mark Walkom
> 
> Infrastructure Engineer  
> Campaign Monitor  
> email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
> web: [www.campaignmonitor.com](http://www.campaignmonitor.com)
> 
> On 22 November 2013 08:51, Mohit Anchlia [mohitanchlia@gmail.com](mailto:mohitanchlia@gmail.com) wrote:
> 
> > I am little confused with elasticsearch head UIs output. I added a new  
> > node and created a new index "test3" with shard: 5 and replica: 1. I also  
> > added a routing rule to only make new node the data node for this test.  
> > However, I am confused with 2 things:
> > 
> > 1. head is showing that my index is spread on the old node as well. I  
> > expect it to be only on the new node
> > 2. Some of the shards are showing UNASSIGNED
> > 3. How to differentiate between a replica and a shard in the UI?
> > 
> > curl -XPUT 10.80.140.86:9200/test3/\_settings -d '{
> > 
> > "index.routing.allocation.include.group1" : "group2"
> > 
> > }'
> > 
> > I am also attaching the screen shot of the UI.
> > 
> > --  
> > 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:05am UTC](https://discuss.elastic.co/t/elasticsearch-head-unassigned/14525/4 "2017-07-06T02:05:33Z")

</div>


