Friday 16 October 2015

ElasticSearch: Health of cluster

You can get information about a cluster by using following url.

GET _cluster/health

Above request return following kind of response.

{
   "cluster_name": "my_cluster",
   "status": "yellow",
   "timed_out": false,
   "number_of_nodes": 1,
   "number_of_data_nodes": 1,
   "active_primary_shards": 7,
   "active_shards": 7,
   "relocating_shards": 0,
   "initializing_shards": 0,
   "unassigned_shards": 7,
   "delayed_unassigned_shards": 0,
   "number_of_pending_tasks": 0,
   "number_of_in_flight_fetch": 0
}

“status” field specify one of three values green, yellow, red.

green: All primary and replica shards are active.

Yellow: All primary shards are active, but not all secondary shards are active.

red: Not all primary shards are active.



Prevoius                                                 Next                                                 Home

No comments:

Post a Comment