Problem in a cluster


(lep) #1

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


(Shay Banon) #2

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 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


(lep) #3

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 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 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


(Shay Banon) #4

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 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 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 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


(lep) #5

Hi,

I'm sending you a gist https://gist.github.com/1554620

On Jan 2, 10:06 pm, Shay Banon 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 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 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 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


(Shay Banon) #6

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 wrote:

Hi,

I'm sending you a gist https://gist.github.com/1554620

On Jan 2, 10:06 pm, Shay Banon 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 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 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 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


(system) #7