使用 Easysearch 还原 Elasticsearch 快照数据
本文主要验证 Elasticsearch 快照在 Easysearch 中进行数据恢复。
准备测试数据
索引

别名

模版

生命周期策略

创建快照
ignore_unavailable:如果 indices 列表中的索引不存在,则是否忽略该索引而不是使快照失败。默认值为 false 。
include_global_state:是否在快照中包含集群状态(包括索引模版、生命周期配置、持久化配置等)。默认值为 true ,建议设为 false。
恢复快照
ignore_unavailable:如果 indices 列表中的索引不存在,则是否忽略该索引而不是使还原操作失败。默认值为 false 。
include_global_state:是否还原群集状态。默认值为 false 。
include_aliases:是否恢复别名及其关联索引。默认值为 true 。
index.lifecycle.indexing_complete 配置不支持,忽略掉。
数据验证
索引

通过 gateway 进行数据比对
./gateway-linux-amd64 -config data_check.yml

别名

模版
生命周期策略
注:不支持 "delete_searchable_snapshot": true 配置
测试结果

关于 Easysearch

INFINI Easysearch 是一个分布式的近实时搜索与分析引擎,核心引擎基于开源的 Apache Lucene。 Easysearch 衍生自基于开源协议 Apache 2.0 的 Elasticsearch 7.10 版本。 Easysearch 的目标是提供一个轻量级的 Elasticsearch 可替代版本,并继续完善和支持更多的企业级功能。 与 Elasticsearch 相比,Easysearch 更关注在搜索业务场景的优化和继续保持其产品的简洁与易用性。
详情参见:官方文档
评论