####横向扩展添加新节点
配置:
1 2 3 4 5 6 7
| cluster.name: my-application node.name: es4.xxx.com path.data: /es path.logs: /es/logs network.host: 172.16.0.24 discovery.zen.ping.multicast.enabled: false discovery.zen.ping.unicast.hosts: ["172.16.0.25","172.16.0.26","172.16.0.24","172.16.0.57","172.16.0.58"]
|
错误:
1 2 3
| ERROR: nested: IllegalArgumentException[No custom metadata prototype registered for type [licenses], node like missing plugins]; Solution:
|
解决:
1 2
| ./bin/plugin install license ./bin/plugin install mobz/elasticsearch-head
|
####纵向扩展升级原有节点
######1.关闭自动分片
1 2 3 4 5 6
| curl -XPUT http://172.16.0.27:9200/_cluster/settings -d' { "transient" : { "cluster.routing.allocation.enable" : "none" } }'
|
######2.升级配置,重启节点
######3.开启自动分片
1 2 3 4 5 6
| curl -XPUT http://172.16.0.27:9200/_cluster/settings -d' { "transient" : { "cluster.routing.allocation.enable" : "all" } }'
|
#####参考
http://www.tuicool.com/articles/RF7RBza