聚类对于弹性堆栈重要吗?
有人可以清楚地向我解释弹性堆栈是否需要聚类?我知道当您设置弹性时,实际上您创建了一个节点,但是我不明白何时必须设置带有多个节点的Elasticsearch?还是聚类真的很重要?
Could anyone explain to me clearly does clustering is required or not for elastic stack? I know when you set up your elastic in fact you created a single node but I can't understand when I have to set up elasticsearch with multiple nodes? or Does clustering is really important or not?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Elasticsearch群集可以使用一个节点创建,但是当您在群集中具有多个节点时,它的真实功能就会出现,这样它就可以确保HA(高可用性)和HS(高可扩展性)。
如果您在生产环境中运行它。强烈建议使用多节点Elasticsearch群集,因为单节点群集可以导致数据丢失(提示:不会分配复制碎片,并且Elasticsearch不是数据库)。
编辑:如评论中所述,有多种文章建议在生产环境中使用多个节点。 en/elasticsearch/reference/current/estignt-settings.html#mdp移民“ rel =“ nofollow noreferrer”>官方文档。
希望这会有所帮助。
Elasticsearch cluster can be created with a single node, but its real power comes when you have multiple nodes in the cluster, that way it can ensure the HA(High availability) and HS(High scalability).
If you running it in Production env. it's highly recommended to use multi-node Elasticsearch cluster, as single node cluster can lead to the data loss(hint: no replica shards will be allocated and Elasticsearch is not a database).
Edit: As discussed in the comments, there are various articles in which its recommended to use the multiple nodes in the Production environment, below is screen-shot from the official document.
Hope this helps.