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.

猜你喜欢

转载自www.cnblogs.com/zhengwenqiang/p/9438556.html