Create mapping error!——primary shard is not active Timeout

The original ES2.3.4 with 1 node, create mapping and index success.
And later changed to distributed, extended to three nodes.
Build a distributed environment successfully.

However, after creating the index, the following error occurs:

{"Error": {"root_cause": [{"type": "unavailable_shards_exception", "reason": "[es_mse_articles] [3] primary shard is not active Timeout: [1m]

I Google for a long time, did not find the root cause.

It sounds like maybe your cluster is too busy and so it isn't able to create the primary shard before the timeout. Perhaps there is another reason, which should be in the logs.

If you were on Elasticsearch 5, you could use the cluster-allocation-explain API to get an easy explanation for what is going wrong.

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