Virtual memory
sysctl -w vm.max_map_count=262144
Disable swap
Usually Elasticsearch is the only service running on a box, and its memory usage is controlled by theES_HEAP_SIZE
environment variable. There should be no need to have swap enabled.
On Linux systems, you can disable swap temporarily by running: sudo swapoff -a
. To disable it permanently, you will need to edit the /etc/fstab
file and comment out any lines that contain the word swap
.
Configure swappiness
vm.swappiness
is set to 0
mlockall
config/elasticsearch.yml
file:
bootstrap.mlockall:true
这是让 JVM 启动的时候就 锁定 heap 内存。
参考:
相关推荐
elasticsearch运维实践
阿里云 专有云企业版 V3.8.1 Elasticsearch 运维指南 20190910
1、Elasticsearch 使用建议:介绍在使用 Elasticsearch 进行数据搜索和分析时,应该遵循的一些规范和建议,包括 ES 架构的选择、索引结构的设计、查询语句的优化、写入优化等等,以提高 Elasticsearch 的性能、可靠...
阿里云 专有云企业版 V3.8.0 Elasticsearch 运维指南 20190621.pdf
阿里云 专有云企业版 V3.7.0 Elasticsearch 运维指南 20181201.pdf
阿里云 专有云企业版 V3.6.2 Elasticsearch 运维指南 - 20181228.pdf
阿里云 专有云企业版 V3.6.1 Elasticsearch 运维指南 - 20181105.pdf
阿里云 专有云企业版 V3.5.2 Elasticsearch 运维指南 - 20180831.pdf
阿里云 专有云企业版 V3.9.0 阿里云Elasticsearch 运维指南 20191017
阿里云 专有云企业版 V3.8.2 阿里云Elasticsearch 运维指南 20200416.pdf
阿里云 专有云企业版 V3.12.0 阿里云Elasticsearch 运维指南(on ECS) 20200619
阿里云 专有云企业版 V3.12.0 阿里云Elasticsearch 运维指南(on K8S) 20200619
08es运维工具以及中文分词器使用.md
05elasticsearch集群运维及故障恢复.md
ElasticSearch技术文档、ElasticSearch优化方案及ElasticSearch运营手册
全套 elasticsearch从入门到精通到运维 基于ES5.6版本 有视频 文档 快速上手
ES运维实践: 注意内容涉及: 1、基本原理概述 2、架构与常用模块 3、性能优化 4、常见问题与案例
[维护]KingbaseES运维工具使用手册
(1)最全面的Elasticsearch运维、管理、调优、故障处理的知识体系:企业级监控体系的搭建,企业级集群部署,集群日常管理策略,集群版本升级方案,集群基准压测方案,集群数据的备份和恢复,系统核心配置参数,性能...