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_stableshards_availabilitydiskilm,即Indexing Lifecycle Managementrepository_integrityslm,即Snapshot Lifecycle Managementshards_capacity
相关资料
ElasticSearch之Health API的更多相关文章
- elasticsearch中的API
elasticsearch中的API es中的API按照大类分为下面几种: 文档API: 提供对文档的增删改查操作 搜索API: 提供对文档进行某个字段的查询 索引API: 提供对索引进行操作 查看A ...
- Elasticsearch for python API模块化封装
Elasticsearch for python API模块化封装 模块的具体功能 检测Elasticsearch节点是否畅通 查询Elasticsearch节点健康状态 查询包含的关键字的日志(展示 ...
- ElasticSearch的常用API
ElasticSearch的常用API 1.在服务器上怎么查ES的信息 # 通过使用_cat可以查看支持的命令 ### curl localhost:9200/_cat eg: /_cat/alloc ...
- Elasticsearch利用cat api快速查看集群状态、内存、磁盘使用情况
使用场景 当Elasticsearch集群中有节点挂掉,我们可以去查看集群的日志信息查找错误,不过在查找错误日志之前,我们可以通过elasticsearch的cat api简单判断下各个节点的状态,包 ...
- Springboot整合elasticSearch的官方API实例
前言:在上一篇博客中,我介绍了从零开始安装ElasticSearch,es是可以理解为一个操作数据的中间件,可以把它作为数据的存储仓库来对待,它具备强大的吞吐能力和计算能力,其基于Lucene服务器开 ...
- Elasticsearch中JAVA API的使用
1.Elasticsearch中Java API的简介 Elasticsearch 的Java API 提供了非常便捷的方法来索引和查询数据等. 通过添加jar包,不需要编写HTTP层的代码就可以开始 ...
- elasticsearch【cat API,系统数据】指令汇总
本博文讲述的ES获取系统数据的API是基于Elasticsearch 2.4.1版本的. 0. overview a. 下面将要介绍的所有的指令,都支持一个查询参数v(verbose),用来显示详细的 ...
- Elasticsearch使用REST API实现全文检索
通过rest api添加检索数据,阅读官方文档可以发现,elasticsearch支持动态映射,但是其中有不少问题,且听慢慢详解. 本文主要讲述三点内容: 1 Elasticsearch常用的rest ...
- ElasticSearch 中 REST API 详解
本文主要内容: 1 ElasticSearch常用的操作 2 ElasticSearchbulk命令 ES REST API elasticsearch支持多种通讯,其中包括http请求响应服务,因此 ...
- Elasticsearch:创建 API key 接口访问 Elasticsearch
转载自:https://blog.csdn.net/UbuntuTouch/article/details/107181440 在之前我的文章 "Elastic:使用Postman来访问El ...
随机推荐
- HTML/网站一键打包APK工具(html网页打包安卓APP应用)
HTML一键打包APK工具使用说明 工具简介 HMTL一键打包APK工具可以把本地HTML项目或者网站打包为一个安卓应用APK文件,无需编写任何代码,也无需配置安卓开发环境,支持在最新的安卓设备上安装 ...
- Redis系列23:性能优化指南
Redis系列1:深刻理解高性能Redis的本质 Redis系列2:数据持久化提高可用性 Redis系列3:高可用之主从架构 Redis系列4:高可用之Sentinel(哨兵模式) Redis系列5: ...
- ReactPortals传送门
ReactPortals传送门 React Portals提供了一种将子节点渲染到父组件以外的DOM节点的解决方案,即允许将JSX作为children渲染至DOM的不同部分,最常见用例是子组件需要从视 ...
- tiptop查询通配符
*:表示任何符合的字符,例:A*,表示要找出全部为 A 开头的资料. ?:表示任一符合的字符,例:A?,表示要找出第一码为 A,第二码为任何 字符,但总共只有二码之数据. 注:以上二功能仅可在文字字段 ...
- http 500 错误
214 [Thu Sep 09 16:03:54.919334 2021] [:error] [pid 32045] [client 124.238.184.230:23796] script '/v ...
- macbook-键盘连击问题002
https://support.apple.com/zh-cn/HT205662 如何清洁 MacBook 或 MacBook Pro 的键盘 如果您的 MacBook(2015 年及更新机型)或 M ...
- 【matplotlib 实战】--散点图
散点图,又名点图.散布图.X-Y图,是将所有的数据以点的形式展现在平面直角坐标系上的统计图表. 散点图常被用于分析变量之间的相关性.如果两个变量的散点看上去都在一条直线附近波动,则称变量之间是线性相关 ...
- [最优化DP]决策单调性
决策单调性的概念&证明工具: 决策单调性,是在最优化dp中的可能出现的一种性质,利用它我们可以降低转移的复杂度. 首先dp中会有转移,每个状态都由若干个状态转移而来,最优化dp比较特殊,只能由 ...
- Unity - UIWidgets 5. Redux接入(一) 基本接入
对响应式的数据组织结构不太熟, 直接尝试Redux走起 参考资料 Redux的基本概念 state 一个字段用于存储状态 存储state的地方称为"store", 类似Model\ ...
- [Python急救站课程]温度转换程序
华氏温度转换为摄氏度的温度转换程序共有三种写法 一.简单的温度转换程序 TempStr = input("请输入带有符号的温度值: ") # TemStr表示命令,表示占位符.=为 ...