如何设置ES集群? [英] How to set up ES cluster?
问题描述
它的超级简单。
您需要每台机器拥有自己的ElasticSearch副本(只需复制一个您现在所在的机器) - 原因是每个机器/节点将保留自己的文件被分片
您唯一需要做的是编辑配置文件以包含集群的名称。
如果所有机器具有相同的集群名称,弹性搜索将自动执行其余的操作(只要机器都在同一网络上)
让您开始:
https://www.elastic.co/guide/ en / elasticsearch / guide / current / deploy.html
当您创建索引(数据所在的位置)时,您需要定义多少个副本(they'l l分布在群集周围)
Assuming I have 5 machines I want to run an elasticsearch cluster on, and they are all connected to a shared drive. I put a single copy of elasticsearch onto that shared drive so all three can see it. Do I just start the elasticsearch on that shared drive on eall of my machines and the clustering would automatically work its magic? Or would I have to configure specific settings to get the elasticsearch to realize that its running on 5 machines? If so, what are the relevant settings? Should I worry about configuring for replicas or is it handled automatically?
its super easy.
You'll need each machine to have it's own copy of ElasticSearch (simply copy the one you have now) -- the reason is that each machine / node whatever is going to keep it's own files that are sharded accross the cluster.
The only thing you really need to do is edit the config file to include the name of the cluster.
If all machines have the same cluster name elasticsearch will do the rest automatically (as long as the machines are all on the same network)
Read here to get you started: https://www.elastic.co/guide/en/elasticsearch/guide/current/deploy.html
When you create indexes (where the data goes) you define at that time how many replicas you want (they'll be distributed around the cluster)
这篇关于如何设置ES集群?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!