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
}
相关推荐
元亓亓亓13 小时前
LeetCode热题100--5. 最长回文子串--中等
linux·算法·leetcode
可爱又迷人的反派角色“yang”13 小时前
k8s(二)
linux·运维·docker·云原生·容器·kubernetes·云计算
硬核子牙13 小时前
有人质疑我ebpf水平
linux
Elasticsearch13 小时前
在 ES|QL 中的混合搜索和多阶段检索
elasticsearch
超级大福宝13 小时前
在 Linux 发行版中安装 Times New Roman 字体
linux·运维·服务器
LaoWaiHang13 小时前
Linux基础知识05:mkdir命令
linux
雨疏风骤124013 小时前
ROM与RAM,储存地址、链接地址以及运行地址
linux·stm32·嵌入式·linux嵌入式
fy zs13 小时前
网络基础概念
linux·网络·c++
学习3人组14 小时前
CentOS 系统下 ModelScope 模型下载的默认目录
linux·python·centos
Java陈序员14 小时前
运维必备!一款全平台可用的服务器管理利器!
linux·react.js·docker