ES cluster

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

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 2384 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.