Suppose an elasticsearch index has 5 primary shards and 2 replica shards for each of the primary shards. Also there are 3 active nodes in the running cluster. How can I find out which primary shards is on which node?
0
votes
1 Answers
1
votes
You can use cat api with shards as parameter to get the required details.
For e.g. if one of you node is running on localhost port 9200, you can use the below:
http://localhost:9200/_cat/shards?v