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
}
相关推荐
chinesegf2 小时前
ubuntu中虚拟环境的简单创建和管理
linux·运维·ubuntu
java_logo2 小时前
2025 年 11 月最新 Docker 镜像源加速列表与使用指南
linux·运维·docker·容器·运维开发·kylin
一碗面4213 小时前
Linux下的网络模型
linux·网络模型
HIT_Weston4 小时前
103、【Ubuntu】【Hugo】搭建私人博客:搜索功能(四)
linux·运维·ubuntu
旖旎夜光4 小时前
Linux(11)(中)
linux·网络
txinyu的博客4 小时前
前置声明与 extern
linux·c++
有泽改之_6 小时前
ssh命令使用
linux·运维·ssh
梁洪飞7 小时前
noc 片上网络
linux·arm开发·嵌入式硬件·arm
颜子鱼9 小时前
Linux驱动-INPUT子系统
linux·c语言·驱动开发
Lueeee.9 小时前
llseek 定位设备驱动实验
linux·驱动开发