elastic search 重要的系统配置

Posted zhengwenqiang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了elastic search 重要的系统配置相关的知识,希望对你有一定的参考价值。

文章翻译自 https://www.elastic.co/guide/en/elasticsearch/reference/current/file-descriptors.html

1.文件描述符

curl -X GET "10.22.60.174:1200/_nodes/stats/process?filter_path=**.max_file_descriptors&pretty"

2.关闭交换分区

交换分区会造成垃圾收集持续数分钟

linux系统 :

sudo swapoff -a

es配置 config/elasticsearch.yml

bootstrap.memory_lock: true

3.线程数

es使用了很多线程来进行不同的操作,要确保es能够按需创建线程

ulimit -u 4096

4.虚拟内存限制

es使用虚拟内存来缓存索引

To set this value permanently, update the vm.max_map_count setting in /etc/sysctl.conf. To verify after rebooting, run sysctl vm.max_map_count.

以上是关于elastic search 重要的系统配置的主要内容,如果未能解决你的问题,请参考以下文章