Elasticsearch Cluster Health Yellow: Causes and Fixes

Share
Workaround available Self-hosted, Elastic Cloud Updated November 15, 2026Based on 2 user reportsHow we research

Quick answer

Yellow means all primary shards are assigned but some replicas are not. On a single-node cluster that is expected, because a replica is never placed on the same node as its primary.

Most likely fix: Find out why with the allocation explain API

How to fix it

Try these in order — the most common fix is first.

  1. 1. Find out why with the allocation explain API

    1. Run GET _cat/shards?v and look for UNASSIGNED rows (prirep r = replica)
    2. Run GET _cluster/allocation/explain with the index, shard number and primary:false
    Did this fix it?
  2. 2. Single node: drop replicas to 0

    1. PUT my-index/_settings with index.number_of_replicas set to 0
    2. Only do this if you accept no redundancy; add a second data node for production
    Did this fix it?
  3. 3. Re-enable allocation if it was turned off

    1. GET _cluster/settings and check cluster.routing.allocation.enable
    2. If it is none, PUT _cluster/settings with persistent cluster.routing.allocation.enable set to null
    Did this fix it?
  4. 4. Add capacity or free disk

    1. Check GET _cat/allocation
    2. Add a data node, delete unneeded indices, or lower number_of_replicas so it fits the node count
    Did this fix it?

Symptoms

GET _cluster/health returns status yellow and unassigned_shards greater than 0; Kibana shows a yellow cluster or index.

Why it happens

  • Single-node cluster, so replicas have nowhere to go
  • More replicas configured than data nodes
  • A node left the cluster (restart, long GC pause, network)
  • Disk low watermark (85% by default) reached
  • Allocation left disabled after maintenance

This guide also covers

  • elasticsearch cluster health yellow
  • elasticsearch yellow status fix
  • elasticsearch replica unassigned single node

Still not working?

If Elasticsearch keeps failing, you're not alone. See every Elasticsearch problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us
Fixed it? Share this guide

Other Elasticsearch errors

All 10 Elasticsearch errors and fixes →