# Problem in a cluster

**URL:** <https://discuss.elastic.co/t/problem-in-a-cluster/6264>\
**Category:** Elasticsearch\
**Created:** [January 2, 2012, 12:40pm UTC](https://discuss.elastic.co/t/problem-in-a-cluster/6264 "2012-01-02T12:40:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lep](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lep/32/2961_2.png) [@lep](https://discuss.elastic.co/u/lep)\
**Post date:** [January 2, 2012, 12:40pm UTC](https://discuss.elastic.co/t/problem-in-a-cluster/6264/1 "2012-01-02T12:40:03Z")

</div>

Hi,

I have a 10 node cluster with one index and 4 replications.

my cluster is unbalanced and one share is unassigned.

how can i assign the unassigned shard (is there a tool or api)

and also how can i balance the cluster.

Thanks  
Lep

---

<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:** [January 2, 2012, 1:32pm UTC](https://discuss.elastic.co/t/problem-in-a-cluster/6264/2 "2012-01-02T13:32:56Z")

</div>

Shards are assigned automatically. Are you sure that all the nodes are  
connected to form a 10 node cluster? Use cluster state on each one to  
verify that they have the same master node id, and same number of nodes.

On Mon, Jan 2, 2012 at 2:40 PM, lep [mark.zitnik@gmail.com](mailto:mark.zitnik@gmail.com) wrote:

> Hi,
> 
> I have a 10 node cluster with one index and 4 replications.
> 
> my cluster is unbalanced and one share is unassigned.
> 
> how can i assign the unassigned shard (is there a tool or api)
> 
> and also how can i balance the cluster.
> 
> Thanks  
> Lep

---

<div class="post-metadata">

**Author:** ![lep](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lep/32/2961_2.png) [@lep](https://discuss.elastic.co/u/lep)\
**Post date:** [January 2, 2012, 4:04pm UTC](https://discuss.elastic.co/t/problem-in-a-cluster/6264/3 "2012-01-02T16:04:15Z")

</div>

Hi,

I have made the check have the same master node in all nodes using  
http://[server]:9200/\_cluster/state?pretty=true

and same number of nodes.

and another additional detail we have 10 nodes of data and a number of  
client nodes.

if there are more operation that i can make please advice.

Thanks  
Lep

On Jan 2, 3:32 pm, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> Shards are assigned automatically. Are you sure that all the nodes are  
> connected to form a 10 node cluster? Use cluster state on each one to  
> verify that they have the same master node id, and same number of nodes.
> 
> On Mon, Jan 2, 2012 at 2:40 PM, lep [mark.zit...@gmail.com](mailto:mark.zit...@gmail.com) wrote:
> 
> > Hi,
> 
> > I have a 10 node cluster with one index and 4 replications.
> 
> > my cluster is unbalanced and one share is unassigned.
> 
> > how can i assign the unassigned shard (is there a tool or api)
> 
> > and also how can i balance the cluster.
> 
> > Thanks  
> > Lep

---

<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:** [January 2, 2012, 8:06pm UTC](https://discuss.elastic.co/t/problem-in-a-cluster/6264/4 "2012-01-02T20:06:04Z")

</div>

Is there anything in the logs as to why that shard is unassigned? Can you  
gist the cluster state (from one of the nodes).

On Mon, Jan 2, 2012 at 6:04 PM, lep [mark.zitnik@gmail.com](mailto:mark.zitnik@gmail.com) wrote:

> Hi,
> 
> I have made the check have the same master node in all nodes using  
> http://[server]:9200/\_cluster/state?pretty=true
> 
> and same number of nodes.
> 
> and another additional detail we have 10 nodes of data and a number of  
> client nodes.
> 
> if there are more operation that i can make please advice.
> 
> Thanks  
> Lep
> 
> On Jan 2, 3:32 pm, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> 
> > Shards are assigned automatically. Are you sure that all the nodes are  
> > connected to form a 10 node cluster? Use cluster state on each one to  
> > verify that they have the same master node id, and same number of nodes.
> > 
> > On Mon, Jan 2, 2012 at 2:40 PM, lep [mark.zit...@gmail.com](mailto:mark.zit...@gmail.com) wrote:
> > 
> > > Hi,
> > 
> > > I have a 10 node cluster with one index and 4 replications.
> > 
> > > my cluster is unbalanced and one share is unassigned.
> > 
> > > how can i assign the unassigned shard (is there a tool or api)
> > 
> > > and also how can i balance the cluster.
> > 
> > > Thanks  
> > > Lep

---

<div class="post-metadata">

**Author:** ![lep](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lep/32/2961_2.png) [@lep](https://discuss.elastic.co/u/lep)\
**Post date:** [January 3, 2012, 11:51am UTC](https://discuss.elastic.co/t/problem-in-a-cluster/6264/5 "2012-01-03T11:51:05Z")

</div>

Hi,

I'm sending you a gist [node data · GitHub](https://gist.github.com/1554620)

On Jan 2, 10:06 pm, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> Is there anything in the logs as to why that shard is unassigned? Can you  
> gist the cluster state (from one of the nodes).
> 
> On Mon, Jan 2, 2012 at 6:04 PM, lep [mark.zit...@gmail.com](mailto:mark.zit...@gmail.com) wrote:
> 
> > Hi,
> 
> > I have made the check have the same master node in all nodes using  
> > http://[server]:9200/\_cluster/state?pretty=true
> 
> > and same number of nodes.
> 
> > and another additional detail we have 10 nodes of data and a number of  
> > client nodes.
> 
> > if there are more operation that i can make please advice.
> 
> > Thanks  
> > Lep
> 
> > On Jan 2, 3:32 pm, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> > 
> > > Shards are assigned automatically. Are you sure that all the nodes are  
> > > connected to form a 10 node cluster? Use cluster state on each one to  
> > > verify that they have the same master node id, and same number of nodes.
> 
> > > On Mon, Jan 2, 2012 at 2:40 PM, lep [mark.zit...@gmail.com](mailto:mark.zit...@gmail.com) wrote:
> > > 
> > > > Hi,
> 
> > > > I have a 10 node cluster with one index and 4 replications.
> 
> > > > my cluster is unbalanced and one share is unassigned.
> 
> > > > how can i assign the unassigned shard (is there a tool or api)
> 
> > > > and also how can i balance the cluster.
> 
> > > > Thanks  
> > > > Lep

---

<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:** [January 3, 2012, 12:23pm UTC](https://discuss.elastic.co/t/problem-in-a-cluster/6264/6 "2012-01-03T12:23:34Z")

</div>

Yea, it seems like one shard partition is not assigned. Do you see anything  
in the logs (specifically, the master log)? Can you share a bit the history  
of this cluster? Is this a fresh cluster that you just created the index  
and a shard is not assigned? Which version are you using?

On Tue, Jan 3, 2012 at 1:51 PM, lep [mark.zitnik@gmail.com](mailto:mark.zitnik@gmail.com) wrote:

> Hi,
> 
> I'm sending you a gist [node data · GitHub](https://gist.github.com/1554620)
> 
> On Jan 2, 10:06 pm, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> 
> > Is there anything in the logs as to why that shard is unassigned? Can you  
> > gist the cluster state (from one of the nodes).
> > 
> > On Mon, Jan 2, 2012 at 6:04 PM, lep [mark.zit...@gmail.com](mailto:mark.zit...@gmail.com) wrote:
> > 
> > > Hi,
> > 
> > > I have made the check have the same master node in all nodes using  
> > > http://[server]:9200/\_cluster/state?pretty=true
> > 
> > > and same number of nodes.
> > 
> > > and another additional detail we have 10 nodes of data and a number of  
> > > client nodes.
> > 
> > > if there are more operation that i can make please advice.
> > 
> > > Thanks  
> > > Lep
> > 
> > > On Jan 2, 3:32 pm, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> > > 
> > > > Shards are assigned automatically. Are you sure that all the nodes  
> > > > are  
> > > > connected to form a 10 node cluster? Use cluster state on each one to  
> > > > verify that they have the same master node id, and same number of  
> > > > nodes.
> > 
> > > > On Mon, Jan 2, 2012 at 2:40 PM, lep [mark.zit...@gmail.com](mailto:mark.zit...@gmail.com) wrote:
> > > > 
> > > > > Hi,
> > 
> > > > > I have a 10 node cluster with one index and 4 replications.
> > 
> > > > > my cluster is unbalanced and one share is unassigned.
> > 
> > > > > how can i assign the unassigned shard (is there a tool or api)
> > 
> > > > > and also how can i balance the cluster.
> > 
> > > > > Thanks  
> > > > > Lep

---

<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, 3:43am UTC](https://discuss.elastic.co/t/problem-in-a-cluster/6264/7 "2017-07-06T03:43:59Z")

</div>

Closed on July 6, 2017, 3:43am UTC


