ElasticSearch之健康状态

参考Cluster health API

命令样例,如下:

shell 复制代码
curl -X GET "https://localhost:9200/_cluster/health?wait_for_status=yellow&timeout=50s&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"

执行输出,如下:

shell 复制代码
{
  "cluster_name" : "elasticsearch",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 1,
  "number_of_data_nodes" : 1,
  "active_primary_shards" : 1,
  "active_shards" : 1,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 0,
  "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" : 100.0
}
相关推荐
HIT_Weston1 小时前
26、【Ubuntu】【远程开发】内网穿透:密钥算法介绍(二)
linux·运维·ubuntu
zl_dfq3 小时前
Linux第一个小程序 之 【进度条】
linux
wdfk_prog3 小时前
[Linux]学习笔记系列 -- [kernel]kthread
linux·笔记·学习
大地的一角3 小时前
(Linux)ELF格式与库的链接原理
linux·运维·服务器
z202305083 小时前
Linux之中断子系统-内核中断注册源码分析(4)
linux·运维·服务器
深思慎考3 小时前
微服务即时通讯系统(服务端)——用户子服务实现逻辑全解析(4)
linux·c++·微服务·云原生·架构·通讯系统·大学生项目
Red丶哞5 小时前
Docker 安装部署Prometheus
linux·云原生·容器·kubernetes
emiya_saber6 小时前
Linux 文件系统基本管理
linux·运维·服务器
夜月yeyue7 小时前
Linux 内核驱动加载机制
linux·服务器·stm32·嵌入式硬件
牢七7 小时前
Linux新
linux