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
}
相关推荐
笑锝没心没肺4 小时前
fail2ban工具安装配置及使用
linux·运维·服务器
大卡片5 小时前
linux内核驱动开发
linux·运维·驱动开发
心心喵7 小时前
[linux] nohup和pm2的区别 进程保活
linux·运维·服务器
醉熏的石头8 小时前
Ubuntu 中的编程语言(中)
linux·ubuntu·scala
阿里云大数据AI技术9 小时前
AI Search × ES Agent Builder 最佳实践:企业智能助手落地指南
人工智能·elasticsearch
dddwjzx11 小时前
嵌入式Linux C应用编程入门——信号
linux·嵌入式
范什么特西11 小时前
网络代理问题
java·linux·服务器
utf8mb4安全女神12 小时前
【Redis数据库】哨兵集群/redis集群/安装配置/主从复制/数据持久化操作/数据结构/安全限制/PHP redis/
linux·服务器·数据结构·数据库·redis·缓存
Zk.Sun12 小时前
Linux设置触屏双击距离容差
linux·运维·数据库
bukeyiwanshui13 小时前
20260622 安装配置ubuntu
linux·运维·ubuntu