简体   繁体   English

为什么不对Elasticsearch使用最大复制?

[英]Why not use maximum replication with Elasticsearch?

Can someone explain to me why, if disk space is not an issue, I don't want maximum replication such that every node has every shard? 有人可以向我解释为什么,如果磁盘空间不是问题,为什么我不希望最大程度地复制以使每个节点都有每个分片?

It seems to me that there would be no real downside here as long as I'm not worried about filling up a disk and my updates happen infrequently and in a timely manner. 在我看来,只要我不担心填满磁盘并且我的更新不频繁且及时地进行,这里就没有真正的不利之处。

Am I missing the obvious? 我想念明显的东西吗? ;) ;)

The only downsides I can see are: 我只能看到的缺点是:

  1. When you get a new document you'll need to write to all nodes - but you say updates are infrequent so this shouldn't be an issue 收到新文档时,您需要写到所有节点-但是您说更新很少,所以这不成问题
  2. If you add a node or need to restore a node it will receive a lot of data (copies of all shards) - however you can throttle this in the node config file. 如果添加节点或需要还原节点,它将收到很多数据(所有分片的副本)-但是,您可以在节点配置文件中进行限制。

So - generally it's a good idea to have replication to all nodes. 所以-通常,复制到所有节点是一个好主意。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM