如何在弹性搜索中创建新的集群? [英] How to create new cluster in elasticsearch?

查看:172
本文介绍了如何在弹性搜索中创建新的集群?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的ubuntu系统上安装了弹性搜索,它的默认集群工作正常。

但是我想创建另一个集群。

我已经查看了弹性搜索的官方文档但是我没有找到创建另一个或多个集群的任何步骤。

解决方案

您需要更新 ES_HOME /配置/ elasticsearch.yml 。在群集部分下,更改群集名称参数。

  cluster.name:my_cluster 

群集名称的默认值为 elasticsearch



ES的一个实例可以是仅一个集群的一部分。如果所有ES实例/计算机具有相同的集群名称,那么只要机器全部打开,弹性搜索将自动形成集群相同的网络


I have installed elastic search on my ubuntu system and it's working fine with default cluster.
But i want to create another cluster.
I have checked official document of elastic search but i haven't found any steps for create another or multiple cluster.

解决方案

You need to update ES_HOME/config/elasticsearch.yml. Under the cluster section, change the cluster name parameter.

cluster.name: my_cluster

Default value for cluster name is elasticsearch

One instance of ES can be a part of only one cluster. If all ES instances / machines have the same cluster name, elasticsearch will form a cluster automatically as long as the machines are all on the same network

这篇关于如何在弹性搜索中创建新的集群?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆