How can I check how many shards I have for an index?

I'm using this command

curl -X GET http://elasticsearch:9200/my-index-*/_settings?pretty

and I'm getting "number_of_shards": "1".

Which doesn't make much sense, because when the index is created on runtime, no settings related to shards are defined. And as far as I know the default number of shards is 5(correct if I'm wrong).

In recent versions the default number of primary shards is 1.

2 Likes

Could you please clarify in which version this changed(or provide me a link)?

Have a look at this:

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