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
}
相关推荐
l1t8 分钟前
在arm64 Linux系统上编译tdoku-lib的问题和解决
linux·运维·服务器·c语言·cmake
txinyu的博客26 分钟前
Linux 内存管理
linux·运维·开发语言·c++
珠穆峰32 分钟前
linux清理缓存命令“echo 3 > /proc/sys/vm/drop_caches”
java·linux·缓存
Xの哲學36 分钟前
Linux自旋锁深度解析: 从设计思想到实战应用
linux·服务器·网络·数据结构·算法
晚风吹长发40 分钟前
深入理解Linux中用户缓冲区,文件系统及inode
linux·运维·算法·链接·缓冲区·inode
LuckyLay1 小时前
Ubuntu配置多版本Java,自由切换
java·linux·ubuntu
SongYuLong的博客1 小时前
openwrt 启动脚本
linux·运维·服务器·物联网
小旺不正经1 小时前
n8n简介
linux·运维·服务器
阳光九叶草LXGZXJ1 小时前
达梦数据库-学习-43-定时备份模式和删除备份(Python+Crontab)
linux·运维·开发语言·数据库·python·学习
RedKali1 小时前
Kali Linux自定义终端美化:初级-普通中级-root高级
linux