My elastic search cluster health was red.
i got this when i get health of cluster
{
"cluster_name" : "elasticsearch",
"status" : "red",
"timed_out" : true,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 4,
"active_shards" : 4,
"relocating_shards" : 0,
"initializing_shards" : 4,
"unassigned_shards" : 134,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 12,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 841403,
"active_shards_percent_as_number" : 2.8169014084507045
}
How can i change health of cluster?
If it hasn't already turned yellow by now you need to look into the logs and things like _cat/recovery
to see why it won't allocate the primary shards.