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
}
相关推荐
愤怒的苹果ext21 分钟前
Flink CDC MySQL同步到Elasticsearch
mysql·elasticsearch·flink·cdc·同步数据
Xの哲學28 分钟前
Linux SLUB 内存分配器深度剖析: 从设计哲学到实战调试
linux·服务器·网络·算法·边缘计算
橘色的喵31 分钟前
嵌入式 ARM Linux 平台高性能无锁异步日志系统设计与实现
linux·arm开发·cache line·ring buffer
何中应44 分钟前
linux使用root账户操作提示没有权限
linux·运维·服务器
天上飞的粉红小猪1 小时前
网络基础概念
linux·服务器·网络·c++
qq_5470261791 小时前
Shell 高级用法
linux
Hello_wshuo1 小时前
记RP2040使用Arduino+platformio开发配置
linux·嵌入式硬件·arduino
KingRumn1 小时前
DBUS源码剖析之DBusMessage消息头
linux·服务器·算法
pwn蒸鱼1 小时前
buuctf中的pwn2_sctf_2016(libc泄露+栈溢出)
linux·安全
qq_5470261791 小时前
Linux 压缩与解压缩
linux·运维·服务器