当前位置: 首页 > news >正文

ElasticSearch之Health API

查看当前集群全部健康指标的信息,执行如下命令:

curl -X GET "https://localhost:9200/_health_report?pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"

执行结果输出如下:

{"status" : "green","cluster_name" : "elasticsearch","indicators" : {"master_is_stable" : {"status" : "green","symptom" : "The cluster has a stable master node","details" : {"current_master" : {"node_id" : "aKgBu7LgS9a6iPYH8n2JPw","name" : "jackie-ubuntu"},"recent_masters" : [{"node_id" : "aKgBu7LgS9a6iPYH8n2JPw","name" : "jackie-ubuntu"}]}},"repository_integrity" : {"status" : "green","symptom" : "No snapshot repositories configured."},"shards_availability" : {"status" : "green","symptom" : "This cluster has all shards available.","details" : {"initializing_primaries" : 0,"restarting_primaries" : 0,"started_primaries" : 1,"unassigned_replicas" : 0,"initializing_replicas" : 0,"creating_primaries" : 0,"restarting_replicas" : 0,"unassigned_primaries" : 0,"started_replicas" : 0,"creating_replicas" : 0}},"disk" : {"status" : "green","symptom" : "The cluster has enough available disk space.","details" : {"indices_with_readonly_block" : 0,"nodes_with_enough_disk_space" : 1,"nodes_with_unknown_disk_status" : 0,"nodes_over_high_watermark" : 0,"nodes_over_flood_stage_watermark" : 0}},"shards_capacity" : {"status" : "green","symptom" : "The cluster has enough room to add new shards.","details" : {"data" : {"max_shards_in_cluster" : 1000},"frozen" : {"max_shards_in_cluster" : 3000}}},"slm" : {"status" : "green","symptom" : "No Snapshot Lifecycle Management policies configured","details" : {"slm_status" : "RUNNING","policies" : 0}},"ilm" : {"status" : "green","symptom" : "Index Lifecycle Management is running","details" : {"policies" : 20,"stagnating_indices" : 0,"ilm_status" : "RUNNING"}}}
}

查看当前集群健康指标比如shards_availability的信息,执行如下命令:

curl -X GET "https://localhost:9200/_health_report/shards_availability?pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"

执行结果输出如下:

{"cluster_name" : "elasticsearch","indicators" : {"shards_availability" : {"status" : "green","symptom" : "This cluster has all shards available.","details" : {"initializing_primaries" : 0,"restarting_primaries" : 0,"started_primaries" : 1,"unassigned_replicas" : 0,"initializing_replicas" : 0,"creating_primaries" : 0,"restarting_replicas" : 0,"unassigned_primaries" : 0,"started_replicas" : 0,"creating_replicas" : 0}}}
}

目前支持的指标:

  • master_is_stable
  • shards_availability
  • disk
  • ilm,即Indexing Lifecycle Management
  • repository_integrity
  • slm,即Snapshot Lifecycle Management
  • shards_capacity

相关资料

  • Health API
http://www.lryc.cn/news/242998.html

相关文章:

  • 图的建立基本操作
  • 影响语音芯片识别率的因素概述
  • 操作系统的主要功能--处理机、存储器、设备、文件
  • PDF 批量处理软件BatchOutput PDF mac中文版介绍
  • oracle安装的肘腋之疾小合集
  • django(千锋教育)
  • Python 前后端分离项目Vue部署应用
  • Linux中安装MySQ-合集
  • elk 简单操作手册
  • CSS画一条线
  • 分享常用设计模式之单例模式(懒汉模式和饿汉模式)和几种关于设计模式的面试题
  • python每日一题——6三数之和
  • 黑马点评笔记 分布式锁
  • java---抽象类 用abstract修饰
  • JVM 之 javac、java、javap 命令详解
  • 市场被套牢,没有了解积累和分配,昂首资本一一介绍
  • notion 3.0.0 版本最新桌面端汉化教程,支持MAC和WIN版本
  • mysql union 和 union all区别?
  • uni-app小程序 swiper 分页器样式修改
  • 2023.11.23使用flask实现在指定路径生成文件夹操作
  • 【Unity入门】Input.GetAxis(““)控制物体移动、旋转
  • 【C++ 设计模式】面向对象设计原则 Template Method 模式 Strategy 策略模式
  • Flink-简介与基础
  • mobiusp 正在创作乐曲
  • Jensen不等式
  • 北邮22级信通院数电:Verilog-FPGA(11)第十一周实验(2)设计一个24秒倒计时器
  • 什么是单元测试?
  • PTA-6-51(处理数组、字符串) 人口统计
  • php中使用cdn
  • docker部署MySQL5.7设置密码和远程访问的方法