Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

ElasticSearch Paikang Kit

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

When choosing the installation package, try to use the rpm package to install, because some of the configuration inside, rpm package management will help you.

Question 1: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536] [2]: max number of threads [1024] for user [es] is too low, increase to at least [4096]

Reason: unable to create local files, the maximum number of files that users can create is too small

Solution: switch to the root user, edit the limits.conf configuration file, and add something like the following:

Vim / etc/security/limits.conf

Add the following: be careful * do not remove it

* soft nofile 65536 * hard nofile 131072 * soft nproc 2048 * hard nproc 4096

Question 2: max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]

Reason: the maximum virtual memory area vm.max_map_ count is too low

Solution: switch to root user to modify configuration sysctl.conf

Vi / etc/sysctl.conf

Add the following configuration:

Vm.max_map_count=655360

And execute the command:

Sysctl-p

Question 3: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

Reason: because Centos6 does not support SecComp, and the default bootstrap.system_call_filter of ES5.2.1 is true for detection, the detection fails, and the failure directly results in the failure of ES.

Solution: configure bootstrap.system_call_filter as false in elasticsearch.yml, and note that under Memory:

Bootstrap.memory_lock: falsebootstrap.system_call_filter: false

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report