Hey,
when I try to GET /_shard_stores i always get an empty response. I tried it with the elastic user or every other user.
My cluster is Green and i have some 1000 shards allocated. I wanted to know where a shard lives.
Hey,
when I try to GET /_shard_stores i always get an empty response. I tried it with the elastic user or every other user.
My cluster is Green and i have some 1000 shards allocated. I wanted to know where a shard lives.
According to the docs, the ?status
parameter defaults to yellow,red
. If your cluster health is green
then there are no yellow or red shards to display, so an empty response is correct.
Oh sry I overlooked this detail...
But how can I see which of the nodes holds the shards of one index?
Thanks
For human consumption, cat shards is simplest; for machines, use indices stats:
GET _cat/shards/<INDEX>
GET /<INDEX>/_stats/store?level=shards&filter_path=indices.*.shards.*.routing
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.