您当前的位置: 首页 > 慢生活 > 程序人生 网站首页程序人生
elasticSearch集群运行状况-health
发布时间:2021-09-04 18:44:02编辑:雪饮阅读()
elasticSearch中此API用于通过追加health关键字来获取集群运行状况的状态。 例如,
请求体:none
响应正文:
{
"cluster_name": "elasticsearch",
"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": 6,
"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": 53.84615384615385
}
关键字词:elasticSearch,集群运行状况,health