如何在弹性搜索中创建多个节点
答
一种解决方案是在
# config/elasticsearch1.yml
node.name=Node1
node.data=false
node.master=true
# config/elasticsearch2.yml
node.name=Node2
node.data=true
node.master=false
# config/elasticsearch3.yml
node.name=Node3
node.data=true
node.master=false
创建具有差异几个配置文件,然后运行几个实例
$ bin/elasticsearch -Des.config=/path/to/config/elasticsearch1.yml
$ bin/elasticsearch -Des.config=/path/to/config/elasticsearch2.yml
$ bin/elasticsearch -Des.config=/path/to/config/elasticsearch3.yml
THKü这么多米哈伊尔,对不起我的延迟回复 – praveenkumar