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
}
相关推荐
chenyuhao20243 分钟前
Linux网络编程:UDP和TCP套接字编程
linux·网络·udp·tcp
GIS阵地3 分钟前
git拉取时报错
大数据·git·elasticsearch
一只努力学习的Cat.13 分钟前
Linux:五种IO模型
linux·服务器
Atri厨17 分钟前
awk入门练习题
linux·运维·服务器
胖好白21 分钟前
【RK3588开发】RK3588的Debian系统环境搭建
linux·vscode·debian
Alex Cafu22 分钟前
Linux网络编程1(OSI模型与TCP/IP协议栈)
linux·c语言·网络·tcp/ip
zeijiershuai1 小时前
Linux、Linux常用命令、Linux软件安装、Linux项目部署
linux·运维·服务器
小宇的天下1 小时前
Calibre nmDRC 高级边缘处理与输出控制(17)
linux·运维·lvs
大聪明-PLUS2 小时前
工业控制器、Linux 和纯 C++。第一部分
linux·嵌入式·arm·smarc
碎碎思2 小时前
从 JTAG 启动 Zynq-7000 嵌入式 Linux:使用 XSCT 全流程教程
linux·运维·服务器·fpga开发