如何在弹性搜索中创建多个节点

问题描述:

我在我的应用程序中使用单节点进行弹性搜索,我需要在我的应用程序中创建另一个节点。什么是查询为我的示例应用程序创建另一个节点。如何在弹性搜索中创建多个节点

一种解决方案是在

# 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 
+0

THKü这么多米哈伊尔,对不起我的延迟回复 – praveenkumar