Using ES-head plugin, need help with terminologies (Screenshot attached)


(Kaustubh Padegaonkar) #1

Hello Group,

Thank you for having me.

I used the Elasticsearch-head plugin on the suggestion of a post in this
group. I have a broken ES cluster.

This is the screenshot of my cluster: http://i.imgur.com/hIJJoSr.png. The
boxes in gray show up as unassigned. The ones in green belong to a cluster.

I have the following questions that I was hoping you guys could help me
with:

  1. Why is there more than one shard with the same name? (See graylog2_71)
  2. Why is one primary, the other is not?
  3. How can I assign them to a cluster that is currently up?
  4. Is there anyway I can trace why the index was unassigned in the first
    place?

Thank you.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/015fd035-9cbe-41e5-88e9-a12479af3c15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(vineeth mohan-2) #2

Please find the answers inline

On Thu, Apr 24, 2014 at 3:49 PM, Kaustubh Padegaonkar <thetuxracer@gmail.com

wrote:

Hello Group,

Thank you for having me.

I used the Elasticsearch-head plugin on the suggestion of a post in this
group. I have a broken ES cluster.

This is the screenshot of my cluster: http://i.imgur.com/hIJJoSr.png. The
boxes in gray show up as unassigned. The ones in green belong to a cluster.

I have the following questions that I was hoping you guys could help me
with:

  1. Why is there more than one shard with the same name? (See graylog2_71)

graylog2_71 is an index and not a shard. As this is a distributed system ,
it will have multiple shards for each index distributed over many machines

  1. Why is one primary, the other is not?

The primary one is responsible for the aggregation of results from all
shards for each query. Any one has to be primary.

  1. How can I assign them to a cluster that is currently up?

I feel most of the machines in your cluster are not up

  1. Is there anyway I can trace why the index was unassigned in the first
    place?

Issue here is , the machine with the shard and its replica , are not
present in the cluster. Due to this ES cant bring back the data.

Thank you.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/015fd035-9cbe-41e5-88e9-a12479af3c15%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/015fd035-9cbe-41e5-88e9-a12479af3c15%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGdPd5m%2BTGioT5y1d-YESos382jyp-8aH_%3DL0nXaswDs0%3Der%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(Kaustubh Padegaonkar) #3

Hi Vineeth,

Thank you for your time. I have some followup questions inline. TIA.

On Thursday, April 24, 2014 11:57:27 PM UTC+5:30, vineeth mohan wrote:

Please find the answers inline

On Thu, Apr 24, 2014 at 3:49 PM, Kaustubh Padegaonkar <
thetuxracer@gmail.com <javascript:>> wrote:

Hello Group,

Thank you for having me.

I used the Elasticsearch-head plugin on the suggestion of a post in this
group. I have a broken ES cluster.

This is the screenshot of my cluster: http://i.imgur.com/hIJJoSr.png.
The boxes in gray show up as unassigned. The ones in green belong to a
cluster.

I have the following questions that I was hoping you guys could help me
with:

  1. Why is there more than one shard with the same name? (See graylog2_71)

graylog2_71 is an index and not a shard. As this is a distributed system
, it will have multiple shards for each index distributed over many machines

I meant to say that there are duplicate shards named 0,1,2,3,4 inside index
graylog2_71.

  1. Why is one primary, the other is not?

The primary one is responsible for the aggregation of results from all
shards for each query. Any one has to be primary.

The shards with thick border are primary, and there exists 1 more shard
with the same name.

  1. How can I assign them to a cluster that is currently up?

I feel most of the machines in your cluster are not up

There is just one machine with ES in my cluster. I ran a bash script that
used the open/close api to open closed indexes and deleted them. I think
thats what caused the inconsistency.

  1. Is there anyway I can trace why the index was unassigned in the first

place?

Issue here is , the machine with the shard and its replica , are not
present in the cluster. Due to this ES cant bring back the data.

Can I not copy/rename the folders or run (any?) ES scripts to recover them?

Thank you.

Thank you.

--
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 elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/015fd035-9cbe-41e5-88e9-a12479af3c15%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/015fd035-9cbe-41e5-88e9-a12479af3c15%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/53bd9eb2-63e6-422e-8e83-8ac3d2b72a42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #4