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
}
相关推荐
拜托啦!狮子5 小时前
安装和使用Homer(linux)
linux·运维·服务器
liulilittle5 小时前
XDP VNP虚拟以太网关(章节:一)
linux·服务器·开发语言·网络·c++·通信·xdp
Sapphire~5 小时前
Linux-13 火狐浏览器书签丢失解决
linux
不染尘.5 小时前
进程切换和线程调度
linux·数据结构·windows·缓存
小龙6 小时前
[Git 报错解决]本地分支落后于远程分支(`non-fast-forward`)
大数据·git·elasticsearch·github
剑之所向6 小时前
c# modbus大小端
linux·运维·网络
比奇堡派星星6 小时前
Linux4.4使用AW9523
linux·开发语言·arm开发·驱动开发
顶点多余6 小时前
Linux中的基本命令-2
linux·运维·服务器
比奇堡派星星6 小时前
cmdline使用详解
linux·arm开发·驱动开发
yaso_zhang7 小时前
linux 下sudo运行程序,链接找不到问题处理
java·linux·服务器