【问题标题】:Are there any preferences to take snapshots of individual indices or to take snapshots of the whole cluster in Elasticsearch?是否有偏好在 Elasticsearch 中拍摄单个索引的快照或拍摄整个集群的快照?
【发布时间】:2022-07-20 12:07:03
【问题描述】:

我试图了解在 Elasticsearch 中,在性能、硬件使用率(CPU/RAM/磁盘/网络)和舒适恢复方面,与对整个集群进行快照相比,对单个索引进行快照是否有任何优势以后的快照过程。谁能给我描述一下?

【问题讨论】:

    标签: elasticsearch snapshot


    【解决方案1】:

    也许这个答案并没有从所有角度评估这两种情况。但我想分享一点:因为在 Elasticsearch 文档中提到,快照是从 segments 拍摄的,并且快照是增量拍摄的(仅在新快照中拍摄新段)[1],所以它感觉到拍摄快照来自n 的索引通常与从每个索引获取n 快照没有什么不同(我不确定元数据和功能状态等例外情况)。

    但是从单个索引中获取大量快照可能存在限制:如果快照数量增加,主节点的内存和集群性能可能会受到影响。在 Elasticsearch 文档中提到,建议在配置 SLM 时为快照设置保留 [2]。

    [1]https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshot-restore.html

    [2]https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshots-take-snapshot.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-02-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-03
      • 1970-01-01
      • 2018-12-03
      • 1970-01-01
      相关资源
      最近更新 更多