Is there any API directly tell how many shard on a node

is there any API like GET /_cat/nodes to get the quatiity of the shard on a node

[
  {
    "name" : "node-2",
    "cpu" : "1"

  },
  {
    "name" : "node-1",
    "cpu" : "4"
  },
  {
    "name" : "node-3",
    "cpu" : "10"
  }
]

I don't think there is, but it sounds like a good idea to add to _cat/nodes. I think it'd be worth opening a feature request for this :slight_smile:

1 Like

This is available from the cat allocation API

2 Likes

:man_facepalming: the one part of the documentation I didn't click on of course. Thanks mate!

1 Like

cool, thanks a lot @DavidTurner @warkolm

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.