参考文档
- https://www.jianshu.com/p/658e5a884fc3
- https://zhuanlan.zhihu.com/p/144635583
- https://blog.csdn.net/xibei19921101/article/details/112527812
- https://blog.csdn.net/qq_32690999/article/details/78505533
- https://developer.aliyun.com/article/784170
- https://learnku.com/articles/40400
- https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-elasticsearch-on-centos-7
- https://www.letianbiji.com/elasticsearch/es7-set-replica-shard-num.html
- https://cloud.tencent.com/developer/article/1638738
- https://www.letianbiji.com/elasticsearch/es7-set-replica-shard-num.html
- https://discuss.elastic.co/t/elasticsearch-is-not-starting-when-bootstrap-memory-lock-is-set-to-true/120962/13
- https://stackoverflow.com/questions/37608486/using-mlockall-to-disable-swapping
- https://blog.huoding.com/2015/08/02/460
- https://www.jianshu.com/p/9752709bfea4
服务器
- 10.194.98.4
- 10.194.98.5
- 10.194.98.6
Elasticsearch部署
RPM方式
1 | rpm -ivh jdk-8u311-linux-x64.rpm |
配置
vi /etc/elasticsearch/elasticsearch.yml
1 | cluster.name: elan-cluster |
启动
1 | systemctl enable elasticsearch |
IK分词插件
https://github.com/medcl/elasticsearch-analysis-ik
1 | cd /usr/share/elasticsearch/plugins |
评分插件
自研插件,无下载地址
mkdir elasticSearch-plugin-score
测试
http://10.194.98.4:9200
http://10.194.98.4:9200/_cat/nodes?pretty
http://10.194.98.4:9200/_cat/plugins
Kibana部署
RPM方式
1 | rpm -ivh kibana-6.8.20-x86_64.rpm |
配置
vi /etc/kibana/kibana.yml
启动
1 | systemctl enable kibana |
测试
优化
memory_lock
1 | vi /etc/elasticsearch/elasticsearch.yml |
禁用自平衡
1 | gateway.expected_nodes: 3 |
监控
1 | GET /_cat |