es索引的性能优化配置

获取所有索引

GET _cat/indices?index=*

查看所有模板,如果数据量多的话,可以进行纵向分表,例如按照日期将索引分开,然后通过建模板,配置索引的参数

GET _cat/templates

查看模板详情

GET _template/模板名称

获取集群的健康状态

GET /_cluster/health?level=indices

获取分片的状态

GET _cat/shards?v

查看unassigned的原因,通过查看原因也能得到问题的解决方案

GET /_cluster/allocation/explain

refresh_interval

刷盘时间,数据实时性的延迟

配置分片数:一般来说内存每G最多20个,每个分片数据大概在20G到50G

number_of_shards

配置副本数:一般1就行,需要更高的可靠性可以设置为3

number_of_replicas

设置索引每个节点最大的分片数:规则下面的数要大于分片数(包括副本)/集群集群节点数

index.routing.allocation.total_shards_per_node

相关推荐
Elasticsearch5 小时前
推进数据成熟度旅程的 3 个步骤
elasticsearch
Elasticsearch6 小时前
用数据驱动的洞察释放业务增长:来自 IT 领导者的 5 个经验
elasticsearch
Elasticsearch6 小时前
Elasticsearch:什么是神经网络?
elasticsearch
chenglin0161 天前
ES_索引模板
大数据·elasticsearch·jenkins
Elasticsearch1 天前
传统 AI 与生成式 AI:IT 领导者指南
elasticsearch
Hello.Reader1 天前
Elasticsearch Rails 集成(elasticsearch-model / ActiveRecord)
大数据·elasticsearch·jenkins
代码的余温2 天前
Elasticsearch核心概念
大数据·elasticsearch·搜索引擎
chenglin0162 天前
ES_多表关联
java·前端·elasticsearch
IsPrisoner2 天前
深入理解 Elasticsearch:从原理到实战的系统性解析
大数据·elasticsearch·搜索引擎
chenglin0162 天前
ES_数据存储知识
java·服务器·elasticsearch