#ES集群部署
##安装文档 CentOS Linux release 7.5.1804 (Core)
下载链接 https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.3.2.rpm
调优文档 https://blog.csdn.net/qq_21835703/article/details/65938692
参考文档 https://blog.csdn.net/u014729236/article/details/50264079
安装文档 https://www.cnblogs.com/aubin/p/8012840.html
##调优参数
/etc/security/limits.conf中配置(保证不低于以下值)
* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096
es soft nofile 65536
es hard nofile 65536
es soft memlock unlimited
es hard memlock unlimited
/etc/security/limits.d/20-nproc.conf 中配置
* soft nproc 4096
root soft nproc unlimited
/etc/sysctl.conf中配置
echo "vm.max_map_count=655360" >> /etc/sysctl.conf
sysctl -p
##ES集群监控
获取es主机版本
curl -s -XGET 192.168.177.133:9200 | grep number
查询本机端口
find /home/ -name elasticsearch.yml | xargs cat | grep ^http.port
查询版本信息
curl -XGET 192.168.177.133:9200
查询集群信息
curl -XGET 'http://192.168.177.133:9200/_cat/nodes?pretty'
[root@es-master3 ~]# curl -XGET 'http://172.16.20.5:9201/_cat/nodes?pretty'
172.16.20.4 62 99 2 4.46 4.86 4.66 i - search_node_2
172.16.20.5 69 100 3 8.40 8.33 7.95 di - data_node_3
172.16.20.4 27 99 2 4.66 4.90 4.67 di - data_node_2
172.16.20.3 22 99 2 6.85 6.93 6.76 mi - master-1
172.16.20.3 52 99 2 6.85 6.93 6.76 di - data_node_4
172.16.20.5 14 100 3 8.44 8.34 7.95 mi - master-3
172.16.20.4 44 99 2 4.46 4.86 4.66 mi * master-2
172.16.20.3 50 99 2 6.85 6.93 6.76 i - search_node_1
172.16.20.4 66 99 2 4.46 4.86 4.66 di - data_node_5
172.16.20.5 72 100 3 8.44 8.34 7.95 i - search_node_3
172.16.20.3 44 99 2 6.85 6.93 6.76 di - data_node_1