zl程序教程

您现在的位置是:首页 >  其他

当前栏目

如何将elastic search 的健康状态由红色red变为绿色green

状态 如何 search 健康 红色 绿色 Red 变为
2023-09-27 14:23:03 时间
现状

在这里插入图片描述
查询健康状态

curl -XGET 'http://localhost:9200/_cluster/health?pretty'

{
“cluster_name” : “go”,
“status” : “red”,
“timed_out” : false,
“number_of_nodes” : 1,
“number_of_data_nodes” : 1,
“active_primary_shards” : 114,
“active_shards” : 114,
“relocating_shards” : 0,
“initializing_shards” : 0,
“unassigned_shards” : 397,
“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” : 22.309197651663403
}

集群状态解读

1)、绿色——最健康的状态,代表所有的主分片和副本分片都可用;