Combine the issues in the process of building, and confirm the matters.
If you don’t install it here, it can be used after decompression and startup. Just modify the configuration file.
Note:
cat /etc/security/limits.conf
* soft nofile 65536
* hard nofile 131072
* soft nproc 65536
* hard nproc 65536
* soft nofile 65536
[[emailprotected] config]# cat /etc/security/limits.d/20-nproc.conf
# Default limit for number of user‘s processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
#* soft nproc 4096
#root soft nproc unlimited
* soft nproc 20480
root soft nproc unlimited
sysctl -a|grep vm.max_map_count #This value must be greater than 262144
sysctl -w vm.max_map_count=655360
cat /etc/sysctl.conf
vm.max_map_count=655360
#< span style="color: #008000;">Memory
The memory uses half of the system memory, and the maximum use is 32G
#There must be permission under the specified log directory
ll /data0/ elk6/elasticsearch/log
When expanding the node, look for problems according to the log, the newly added node, According to the number of shards, it takes more than ten minutes to enter the cluster
/data0/elk6/elasticsearch/log/cbi_es6_cloud.log
cat /etc/security/limits.conf
* soft nofile 65536
* hard nofile 131072
* soft nproc 65536
* hard nproc 65536
* soft nofile 65536
[[email protected] config]# cat /etc/security/limits.d/ 20-nproc.conf
# Default limit for number of user‘s processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
#* soft nproc 4096
#root soft nproc unlimited
* soft nproc 20480
root soft nproc unlimited
sysctl -a|grep vm.max_map_count #This value must be greater than 262144
sysctl -w vm.max_map_count=655360
cat /etc/sysctl.conf
vm.max_map_count=655360
#Memory
The memory uses half of the system memory, and the maximum use is 32G
#There must be permission under the specified log directory
ll /data0/elk6/elasticsearch/log
When expanding nodes, look for problems based on logs. For newly added nodes, it will take more than ten minutes according to the number of shards. Enter the cluster
/data0/elk6/elasticsearch/log/cbi_es6_cloud.log