"status" : "yellow"

Hi to everyone,

I'm a Elasticsearch noob and I'm testing it on my local PC, when I test the health of cluster it returns me status: yellow, what can I do?

Result of cluster health:

{
"cluster_name" : "elasticsearch_ivan-dev",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 5,
"active_shards" : 5,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 5,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 50.0
}

my elasticsearch.yml:

cluster.name: elasticsearch_ivan-dev
node.name: ivan_01_dev
path.data: /var/elasticsearch/data
path.logs: /var/elasticsearch/logs
bootstrap.mlockall: true
network.host: 127.0.0.1

Yellow is fine.

It just means that replica shards are not assigned.
If you want it to become green, start a new node. Replicas will be assigned to the new node.

Yellow status means that all data is available but that the requested replication level hasn't been met. With a one-node cluster it's impossible to reach a green state if you have any replicas. To get a green cluster, follow David's advice of adding another node to the cluster or reconfigure your index(es) to have zero replicas.

Thank you for your help!! :+1: