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
}
相关推荐
Sumlll_10 小时前
Ubuntu系统下QEMU的安装与RISC-V的测试
linux·ubuntu·risc-v
猫头虎10 小时前
2025最新OpenEuler系统安装MySQL的详细教程
linux·服务器·数据库·sql·mysql·macos·openeuler
晚风吹人醒.12 小时前
SSH远程管理及访问控制
linux·运维·ssh·scp·xshell·访问控制·远程管理
潇潇云起13 小时前
【elastic-start-local 本地docker 30天后需要重新试用处理】
elasticsearch
Uncertainty!!13 小时前
Linux多用户情况下个别用户输入密码后黑屏
linux·远程连接
necessary65313 小时前
使用Clion查看linux环境中的PG源码
linux·运维·服务器
小猪佩奇TONY15 小时前
Linux 内核学习(14) --- linux x86-32 虚拟地址空间
linux·学习
Lam㊣15 小时前
Centos 7 系统docker:更换镜像源
linux·docker·centos
FL162386312915 小时前
win11+WSL+Ubuntu-xrdp+远程桌面闪退+黑屏闪退解决
linux·运维·ubuntu
石头53015 小时前
Kubernetes监控全栈解决方案:从零搭建Prometheus+Grafana监控体系
linux