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
}
相关推荐
Molesidy1 分钟前
【SOC】【Linux】基于全志F133+Linux内核的嵌入式Linux开发的学习过程记录
linux
重生之绝世牛码3 分钟前
Linux软件安装 —— Flink集群安装(集成Zookeeper、Hadoop高可用)
大数据·linux·运维·hadoop·zookeeper·flink·软件安装
艾莉丝努力练剑6 分钟前
【QT】Qt 从零上手:Hello World、项目文件与实战避坑指南
linux·运维·开发语言·c++·qt·继承·qt5
小趴菜不能喝11 分钟前
Linux 搭建SVN服务
linux·运维·svn
可爱又迷人的反派角色“yang”13 分钟前
k8s(七)
java·linux·运维·docker·云原生·容器·kubernetes
optimistic_chen14 分钟前
【Docker入门】namespace 空间隔离
linux·运维·docker·容器·空间隔离
骇客野人14 分钟前
Linux通过自动脚本自动化推送k8s Docker镜像
linux·kubernetes·自动化
探序基因15 分钟前
CentOS Stream release 9的Rstudio安装
linux·运维·centos
HABuo19 分钟前
【linux进程控制(二)】进程等待-->死亡的子进程是如何被父进程等待回收的?
linux·运维·服务器·c语言·c++·ubuntu·centos
wheeldown21 分钟前
【Linux网络基础】Linux 网络基础与 TCP 协议
linux·网络·tcp/ip