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
}
相关推荐
阿猿收手吧!19 小时前
【C语言】localtime和localtime_r;strftime和strftime_l
linux·c语言·开发语言
yewq-cn20 小时前
海思 SLE 芯片 Linux 烧录
linux·服务器
顾安r20 小时前
11.5 脚本 本地网站收藏(解封归来)
linux·服务器·c语言·python·bash
zzzsde20 小时前
【Linux】权限(1):初识权限与使用理解
linux·运维·服务器
hzp66620 小时前
使用WinBoat在Linux中安装window应用
linux·window·winboat·linux可视化
乌萨奇也要立志学C++21 小时前
【Linux】进程间通信(一)匿名管道原理剖析与进程池手动实现全流程
linux·运维·服务器
阿巴~阿巴~1 天前
线程安全单例模式与懒汉线程池的实现与优化
linux·服务器·单例模式·线程池·饿汉模式·懒汉模式·静态方法
大隐隐于野1 天前
tcp 丢包分析
linux·服务器·网络
梦昼初DawnDream1 天前
linux安全基线
linux·运维·安全
一周困⁸天.1 天前
Elasticsearch+Logstash+Filebeat+Kibana部署【7.1.1版本】
大数据·elk·elasticsearch·jenkins