es查看集群状态常用命令
1.查看集群数据的正确率
active_shards_percent_as_number这个值如果低于100说明集群数据正确性存在问题,集群状态为yellow或者red都会使这个值低于100文章来源:https://www.toymoban.com/news/detail-508292.html
[root@log-elk-10-13 ~]# curl -XGET 'http://192.168.10.11:9200/_cluster/health?pretty=true'
{
"cluster_name" : "Log-cluster",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 3,
"number_of_data_nodes" : 3,
"active_primary_shards" : 146,
"active_shards" : 158,
"relocating_shards" : 0,
"initializing_shards" : 4,
"unassigned_shards" : 130,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 1,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 54.109589041095894
}
2.查看集群索引的状态文章来源地址https://www.toymoban.com/news/detail-508292.html
[r
到了这里,关于es查看集群状态常用命令的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!