Elasticsearch 集群状态详解

cluster state 返回结果详解

GET /_cluster/statehttps://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-state.html

详细信息如下:

{"cluster_name": "business-log","cluster_uuid": "ArYy-qmCTbCQTDUI8ogsBg","version": 497261,"state_uuid": "6_u2t1A1Rnyw70hfp7eWIQ","master_node": "1WRaRyU-SuCPn8qbz3e4hg","blocks": {"indices": {".kibana_1": {"8": {"description": "index write (api)","retryable": false,"levels": ["write"]}}}},"nodes": {"hYrrmhLHTx-QHoDmZ2wATg": {"__jiankunking_comment__": "节点名称、监听地址和端口等信息","name": "es-b-220","ephemeral_id": "Pk0I_YgZQKe0bK1EIQ8R-w","transport_address": "127.0.220.220:9301","attributes": {"ml.machine_memory": "135202910208","ml.max_open_jobs": "512","xpack.installed": "true","ml.max_jvm_size": "33285996544","transform.node": "true"},"roles": ["data","data_cold","data_content","data_frozen","data_hot","data_warm","ingest","master","ml","remote_cluster_client","transform"]}},"metadata": {"__metadata_jiankunking_comment__": "集群元数据","cluster_uuid": "ArYy-qmCTbCQTDUI8ogsBg","cluster_uuid_committed": true,"__cluster_uuid_committed_comment__": "Whether the current node with the given cluster state is locked into the cluster with the UUID returned by {@link #clusterUUID()}, meaning that it will not accept any cluster state with a different clusterUUID. https://github.com/jiankunking/elasticsearch/blob/692cca611db5db3365cba45320879f4e05d3d7d2/server/src/main/java/org/elasticsearch/cluster/metadata/Metadata.java#L241","cluster_coordination": {"term": 92,"__last_committed_config_comment__": "https://www.elastic.co/guide/en/elasticsearch/reference/7.13/modules-discovery-voting.html""last_committed_config": ["hYrrmhLHTx-QHoDmZ2wATg","jaNLhd1eT6SUYcLJkHpE1Q","1VQFmt9jQ-6d7fCMjP-vnQ","uzGdH3VeRbOlcDIWeKdgIw","PhjlCea6TNKh4rdZPyPDkA","ZFQdNP4HSgCtPCnMfDdopw","1WRaRyU-SuCPn8qbz3e4hg"],"last_accepted_config": ["hYrrmhLHTx-QHoDmZ2wATg","jaNLhd1eT6SUYcLJkHpE1Q","1VQFmt9jQ-6d7fCMjP-vnQ","uzGdH3VeRbOlcDIWeKdgIw","PhjlCea6TNKh4rdZPyPDkA","ZFQdNP4HSgCtPCnMfDdopw","1WRaRyU-SuCPn8qbz3e4hg"],"voting_config_exclusions": []},"templates": {"__templates_jiankunking_comment__": "全部模板的具体内容","k8s-log-template": {"order": 0,"index_patterns": ["logstash-*"],"settings": {"index": {"codec": "best_compression","refresh_interval": "30s","number_of_shards": "3","number_of_replicas": "1"}},"mappings": {"_doc": {"dynamic_templates": [{"strings_as_keywords": {"unmatch": "log","mapping": {"type": "keyword"},"match_mapping_type": "string"}},{"log": {"mapping": {"norms": false,"analyzer": "standard","type": "text"},"match_mapping_type": "string","match": "log"}},{"@timestamp": {"mapping": {"type": "date"},"match_mapping_type": "date","match": "@timestamp"}}]}},"aliases": {}}},"indices": {"__indices_jiankunking_comment__": "索引列表","logstash-2023.11.06": {"version": 27,"mapping_version": 20,"settings_version": 1,"aliases_version": 1,"routing_num_shards": 896,"state": "open","settings": {"index": {"codec": "best_compression","routing": {"allocation": {"include": {"_tier_preference": "data_content"}}},"refresh_interval": "30s","number_of_shards": "7","provided_name": "logstash-2023.11.06","creation_date": "1699200016628","number_of_replicas": "1","uuid": "eplKvvIaSpaTzwqhjwGNYQ","version": {"created": "7130499"}}},"mappings": {"_doc": {"dynamic_templates": [{"strings_as_keywords": {"unmatch": "log","mapping": {"type": "keyword"},"match_mapping_type": "string"}},{"log": {"mapping": {"norms": false,"analyzer": "standard","type": "text"},"match_mapping_type": "string","match": "log"}},{"@timestamp": {"mapping": {"type": "date"},"match_mapping_type": "date","match": "@timestamp"}}],"properties": {"cluster": {"type": "keyword"},"kubernetes": {"properties": {"container_name": {"type": "keyword"},"statefulset": {"properties": {"name": {"type": "keyword"}}},"annotations": {"properties": {"helm_sh/namespace": {"type": "keyword"},"helm_sh/release": {"type": "keyword"}}},"namespace_uid": {"type": "keyword"},"namespace_labels": {"properties": {"kubernetes_io/metadata_name": {"type": "keyword"},"control-plane": {"type": "keyword"}}},"namespace_name": {"type": "keyword"},"pod_name": {"type": "keyword"}}},"log": {"norms": false,"analyzer": "standard","type": "text"},"node_name": {"type": "keyword"},"@timestamp": {"type": "date"}}}},"aliases": [],"primary_terms": {"__primary_terms_jiankunking_comment__": "某个分片被选为主分片的次数,用于区分新旧主分片;https://www.devopsschool.com/blog/what-is-seq_no-and-primary_term-in-elasticsearch/","0": 1,"1": 2,"2": 4,"3": 3,"4": 1,"5": 7,"6": 4},"in_sync_allocations": {"__in_sync_allocations_jiankunking_comment__": "同步分片列表,代表某个分片中拥有最新数据的分片列表","5": ["pYyuBTo0QVeuvY2PrADVJQ","zfP06et8TOuy3NAUirRO1w"],"6": ["EQl7pge5ST26Wnz-lGLB6g","J1PeYw0fSpyNdNl_PJ1PAA"],"2": ["BmcC-XHYR36suKmyGqA_DQ","53scs4-9SuWB-YgZ000SLg"],"4": ["HWbwWFWfRKmiRQXVA7KVrA","539ACU5IQGyjXGcbqDpZcA"],"3": ["o3YjH-7qQpSEX1FQKVUoDQ","DezGojWLSiOKSvEex1vH6Q"],"1": ["jkBt1_D1Sni_3Uo2k8gJow","cyKkS7K2Q1uXY_1F44w9ow"],"0": ["Th7wtq7RQASfrRj5csnz0w","GVifsKOwTlqhxGpgYVOdfQ"]},"rollover_info": {},"system": false,"timestamp_range": {"unknown": true}}},"ingest": {"pipeline": [{"id": "xpack_monitoring_6","config": {"description": "This pipeline upgrades documents from the older version of the Monitoring API to the newer version (7) by fixing breaking changes in those older documents before they are indexed from the older version (6).","version": 7120099,"processors": [{"script": {"source": "ctx._type = null"}},{"gsub": {"field": "_index","pattern": "(.monitoring-\\w+-)6(-.+)","replacement": "$17$2"}}]}}]},"index_template": {"__index_template_jiankunking_comment__": "模板有两种类型:索引模板和组件模板。 组件模板是可重用的构建块,用于配置映射,设置和别名。 你使用组件模板来构造索引模板,但它们不会直接应用于一组索引。 索引模板可以包含组件模板的集合,也可以直接指定设置,映射和别名。https://blog.csdn.net/UbuntuTouch/article/details/113751797","index_template": {"logs": {"index_patterns": ["logs-*-*"],"composed_of": ["logs-mappings","logs-settings"],"priority": 100,"version": 0,"_meta": {"description": "default logs template installed by x-pack","managed": true},"data_stream": {"hidden": false},"allow_auto_create": true}}},"data_stream": {"data_stream": {"ilm-history-5": {"name": "ilm-history-5","timestamp_field": {"name": "@timestamp"},"indices": [{"index_name": ".ds-ilm-history-5-2023.07.18-000024","index_uuid": "ovhEhrqgQmq6MR4pLk2m4A"},{"index_name": ".ds-ilm-history-5-2023.08.17-000025","index_uuid": "5zw095VyRJyWBlAovftH3g"},{"index_name": ".ds-ilm-history-5-2023.09.16-000026","index_uuid": "nIRDt047TmSLIc-P7fW4Ug"},{"index_name": ".ds-ilm-history-5-2023.10.16-000027","index_uuid": "1F4fEU6YTnynu06PWcZ9LQ"}],"generation": 27,"_meta": {"description": "index template for ILM history indices","managed": true},"hidden": true,"replicated": false,"system": false}}},"index-graveyard": {"__index-graveyard_jiankunking_comment__": "index-graveyard:索引墓碑。记录已删除的索引,并保存一段时间。索引删除是主节点通过下发集群状态来执行的;各节点处理集群状态是异步的过程。例如,索引分片分布在5个节点上,删除索引期间,某个节点是“down”掉的,没有执行删除逻辑;当这个节点恢复的时候,其存储的已删除的索引会被当作孤立资源加入集群,索引死而复活。墓碑的作用就是防止发生这种情况。","tombstones": [{"__tombstones_jiankunking_comment__": "已删除的索引列表"},{"index": {"index_name": "logstash-hic-2023.10.13","index_uuid": "wLl2HTaDQ7-UuKuvpu_Y8w"},"delete_date_in_millis": 1699068185273},{"index": {"index_name": "logstash-mplat-2023.10.13","index_uuid": "sDM_kklIST6ym1cLZ3RKDQ"},"delete_date_in_millis": 1699068185273}]},"index_lifecycle": {"policies": {"kibana-event-log-policy": {"policy": {"phases": {"hot": {"min_age": "0ms","actions": {"rollover": {"max_size": "50gb","max_age": "30d"}}},"delete": {"min_age": "90d","actions": {"delete": {"delete_searchable_snapshot": true}}}}},"headers": {},"version": 1,"modified_date": 1630029263987,"modified_date_string": "2021-08-27T01:54:23.987Z"},"logs": {"policy": {"phases": {"hot": {"min_age": "0ms","actions": {"rollover": {"max_primary_shard_size": "50gb","max_age": "30d"}}}}},"headers": {},"version": 1,"modified_date": 1630029123825,"modified_date_string": "2021-08-27T01:52:03.825Z"}},"operation_mode": "RUNNING"},"component_template": {"__component_template_jiankunking_comment__": "模板有两种类型:索引模板和组件模板。 组件模板是可重用的构建块,用于配置映射,设置和别名。 你使用组件模板来构造索引模板,但它们不会直接应用于一组索引。 索引模板可以包含组件模板的集合,也可以直接指定设置,映射和别名。https://blog.csdn.net/UbuntuTouch/article/details/113751797","component_template": {"logs-settings": {"template": {"settings": {"index": {"lifecycle": {"name": "logs"},"codec": "best_compression","query": {"default_field": ["message"]}}}},"version": 0,"_meta": {"description": "default settings for the logs index template installed by x-pack","managed": true}},"logs-mappings": {"template": {"mappings": {"dynamic_templates": [{"strings_as_keyword": {"mapping": {"ignore_above": 1024,"type": "keyword"},"match_mapping_type": "string"}}],"date_detection": false,"properties": {"@timestamp": {"type": "date"},"ecs": {"properties": {"version": {"ignore_above": 1024,"type": "keyword"}}},"data_stream": {"properties": {"namespace": {"type": "constant_keyword"},"type": {"type": "constant_keyword","value": "logs"},"dataset": {"type": "constant_keyword"}}},"host": {"properties": {"ip": {"type": "ip"}}},"message": {"type": "text"}}}},"version": 0,"_meta": {"description": "default mappings for the logs index template installed by x-pack","managed": true}}}}},"routing_table": {"__routing_table_jiankunking_comment__": "内容路由表,存储某个分片位于哪个节点的信息,通过分片找到节点。","indices": {"__indices_jiankunking_comment__": "全部索引列表","logstash-bsr-2023.10.23": {"shards": {"__shards_jiankunking_comment__": "该索引的全部分片列表","5": [{"state": "STARTED","__state_jiankunking_comment__": "分片可能的状态: UNASSIGNED、INITIALIZING、STARTED、RELOCATING","primary": false,"node": "uzGdH3VeRbOlcDIWeKdgIw","__relocating_node_jiankunking_comment__": "正在relocation到哪个节点","relocating_node": null,"shard": 5,"index": "logstash-bsr-2023.10.23","allocation_id": {"id": "TLi8WkbHTrSalefIIyUYgA"}},{"state": "STARTED","primary": true,"node": "1VQFmt9jQ-6d7fCMjP-vnQ","relocating_node": null,"shard": 5,"index": "logstash-bsr-2023.10.23","allocation_id": {"__jiankunking_comment__": "分片唯一的allocation_id配合in_sync_allocations使用","id": "M7FK6iV0RDSH_DYwSbdhrA"}}]}}}},"routing_nodes": {"__routing_nodes_jiankunking_comment__": "储某个节点存储了哪些分片的信息。通过节点找到分片","unassigned": [],"nodes": {"hYrrmhLHTx-QHoDmZ2wATg": [{"state": "STARTED","primary": false,"node": "hYrrmhLHTx-QHoDmZ2wATg","relocating_node": null,"shard": 1,"index": "logstash-bsr-2023.10.23","allocation_id": {"id": "ifq-S_55Rs-o-jNWx5JPkQ"}}]}}
}

在这里插入图片描述

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/136596.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

conda清华源安装cuda12.1的pytorch

使用pytorch官方提供的conda command奇慢无比,根本装不下来(科学的情况下也这样) 配置一下清华源使用清华源装就好了 清华源:https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/ 配置方法:conda config --…

strtok函数详解:字符串【分割】的利器

目录 一,strtok函数简介 二,strtok函数的用法 三,strtok函数的注意事项 一,strtok函数简介 strtok函数可以帮助我们将一个字符串按照指定的分隔符进行分割,从而得到我们想要的子字符串。 🍂函数头文件&am…

腾讯待办是不是停了?怎么用其它提醒软件查看导出的ics文件

腾讯待办是腾讯企业旗下的业务产品,其主要以微信小程序的形式使用,定位于待办事项和日程管理工具,支持罗列日程待办清单、设定定时提醒,帮助大家规划日常事务和进行时间管理,成功创建待办事项后可在对应的公众号和绑定…

Python教程之字典(Dictionary)操作详解

文章目录 前言一、创建字典二、访问字典里的值三、访问字典里的值四、删除字典元素五、字典键的特性六、字典内置函数&方法七、字典练习代码关于Python技术储备一、Python所有方向的学习路线二、Python基础学习视频三、精品Python学习书籍四、Python工具包项目源码合集①Py…

tqdm学习

from tqdm import tqdmepochs 10 epoch_bar tqdm(range(epochs)) count 0 for _ in epoch_bar:count count1print("count {}".format(count))print(_)每次就是一个epoch

如何在Jetpack Compose中显示PDF?

当读取和显示 PDF 的组件缺失时该怎么办? 声明式编程可以拯救你. Jetpack Compose已经存在好几年了, 但_在某些方面它的使用仍然面临挑战_. 例如, 缺少用于查看PDF的官方组件, 而为数不多的第三方库通常也是有代价的. 在我们的应用中, 我们会遇到在许多场景中显示 PDF 的需求…

[Matlab]基于LSTM+NSGA2的风光火力发电策略优化

最近比较忙,好久没分享案例啦,今天简单分享一个滚动时域的多目标优化 一 模型介绍 1 风电 2 光伏 3 火电 4 储能 5 用电需求 等五个对象。 其中风电和光伏还有用电需求,用历史数据LSTM网络,训练一个预测模型;火电根据策…

2.【自动驾驶与机器人中的SLAM技术】左乘模型推导ESKF

目录 1. 证明题 证明:若某个高斯随机变量为零均值,协方差为对角线矩阵且大小相同(各向同性),那么在乘任意旋转矩阵以后,其均值仍为零,且协方差不变; 2. 代码实现运动方程将F矩阵…

TCP网络编程

一)TCP Socket介绍: 1)TCP和UDP有着很大的不同,TCP想要进行网络通信的话首先需要通信双方建立连接以后然后才可以进行通信,TCP进行网络编程的方式和文件中的读写字节流类似,是以字节为单位的流进行传输 2)针对于TCP的套接字来说,J…

Kotlin(十) 空指针检查、字符串内嵌表达式以及函数默认值

空指针检查 我们在之前的章节里,有定义一个Study的类,它有两个函数,一个doHomework(),一个readBooks()。然后我们定义个doStudy函数,来调用它们,代码如下: fun doStudy(study: Study) {study.doHomework(…

TSINGSEE青犀智能分析网关工服识别算法,如何最大限度保障工人安全?

众所周知,TSINGSEE青犀智能分析网关算法繁多,大多数算法已经和大家讲解过了,今天就和大家聊一聊工服识别算法。工服识别算法一般应用于工地、化工、煤矿等场所,用来监督检测施工人员是否按照要求着工服,最大程度保障人…

面试10000次依然会问的【线程池】,你还不会?

线程池的基本概念 线程池是一种基于池化技术的线程使用方式,它允许我们有效地管理和复用线程,减少线程的创建和销毁的开销,从而提高系统的响应速度。在Java中,线程池的管理主要通过ThreadPoolExecutor类来实现。 线程池的定义与…

IntelliJ IDEA - Git Commit 后 Commit 窗口不消失解决方案

这个现象是在 2023 年版本后开始的,一开始以为是 Mac 系统的原因,后来发现原来 Windows 也这样,所以应该只跟 IDEA 版本有关 可以看到左侧 commit 后,这个侧边栏还在,按理讲在以前的版本是之前消失,这样使…

SOLIDWORKS 2024新功能之Visualize篇

SOLIDWORKS 2024新功能Visualize 增强了创建引人注目的外观的功能 SOLIDWORKS Visualize 使用 Dassault Systmes 的企业 PBR 着色模型 (DSPBR) 来准确复制金属、玻璃、塑料和其他曲面的逼真外观。 DSPBR 是材料模型,用于基于物理的渲染,受 3DEXPERIENCE…

动态规划(3)---Leetcode509.斐波那契数

题目 分析 很明显的动态规划&#xff0c;直接写出。之前都是用递归来写。 题解 class Solution {public int fib(int n) {if (n0) return 0;if (n1) return 1;int q0,p1,r0;for(int i2;i<n;i){rqp;int tmpp;pr;qtmp; }return r;}

GIT的安装与常见命令

Git的介绍 Git是一个开源的分布式版本控制系统&#xff0c;最初由Linus Torvalds在2005年创建用于管理Linux内核的开发&#xff0c;现在已成为全球最流行的版本控制工具之一。 Git可以跟踪代码的修改&#xff0c;记录开发历程&#xff0c;保证多人合作开发时代码的一致性&…

如何在Android平板上远程连接Ubuntu服务器code-server进行代码开发?

文章目录 1.ubuntu本地安装code-server2. 安装cpolar内网穿透3. 创建隧道映射本地端口4. 安卓平板测试访问5.固定域名公网地址6.结语 1.ubuntu本地安装code-server 准备一台虚拟机&#xff0c;Ubuntu或者centos都可以&#xff0c;这里以VMwhere ubuntu系统为例 下载code serve…

探索人工智能领域——30个名词详解

目录 前言 正文 总结​​​​​​​ &#x1f308;嗨&#xff01;我是Filotimo__&#x1f308;。很高兴与大家相识&#xff0c;希望我的博客能对你有所帮助。 &#x1f4a1;本文由Filotimo__✍️原创&#xff0c;首发于CSDN&#x1f4da;。 &#x1f4e3;如需转载&#xff0c;请…

微信小程序:js实现不改变原数组的情况下增加一条对象到新数组中

效果 核心 old_array.slice(0) 表示对 old_array 这个数组进行切片操作&#xff0c;从索引 0 开始&#xff08;包括索引 0&#xff09;&#xff0c;直到数组的末尾&#xff0c;old_array.slice(0) 中的 0 表示开始切片的索引位置&#xff0c;而由于没有传入第二个参数&#xff…

电商项目之Java8函数式接口落地实践

文章目录 1 问题背景2 前言3 多处重复的重试机制代码4 优化后的代码5 进一步优化 1 问题背景 在电商场景中&#xff0c;会调用很多第三方的云服务&#xff0c;比如发送邮件、发起支付、发送验证码等等。由于网络存在抖动&#xff0c;有时候发起调用后会拿到500的状态码&#xf…