Help Center/ Cloud Search Service/ Troubleshooting/ Functions/ A Node in an Elasticsearch Cluster Has No Shards Allocated to It
Updated on 2025-10-11 GMT+08:00

A Node in an Elasticsearch Cluster Has No Shards Allocated to It

Solution

  1. Run the following command to check unallocated shards:
    GET _cluster/allocation/explain?pretty
    Figure 1 Checking unallocated shards
  2. In the cluster list, find the target cluster, and choose More > Cerebro in the Operation column. Log in to Cerebro.
  3. On the Cerebro console, choose more > cluster settings, enter allocation.enable in the upper left corner, and change none to all.

  4. If Cerebro is unavailable, run the following command:
    curl -X PUT "http://Intranet_IP:9200/_cluster/settings" -H 'Content-Type: application/json' -d'{"persistent":{"cluster.routing.allocation.enable": "all"}}'