ElasticSearch 常见命令
命令 响应 命令描述 字段描述
GET /_cluster/health {
“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” : 1,
“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” : 87.5
}
显示 Elasticsearch 的集群监控信息 status: 集群健康状况 grren 正常 / yellow 主分片正常 / red 有主分片未正常运行
文章作者: koral
文章链接: http://luokaiii.github.io/2020/08/10/后端/ElasticSearch/Elasticsearch命令/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自