简体   繁体   English

使用 terraform 升级 AWS elasticsearch 和 logstash

[英]Upgrading AWS elasticsearch & logstash with terraform

I am currently trying to upgrade our AWS Elasticsearch (ES) with terraform and want to create two new clusters from the one that we currently have.我目前正在尝试使用 terraform 升级我们的 AWS Elasticsearch (ES),并希望从我们目前拥有的集群中创建两个新集群。

It would be preferable to do it through terraform as we have a huge cluster that is run through terraform so if we update through the console it would revert back when we apply the terraform.最好通过 terraform 来完成,因为我们有一个巨大的集群通过 terraform 运行,因此如果我们通过控制台更新,它会在我们应用 terraform 时恢复。 Has anyone any experience doing this from ES version 2.3 to version 5?有没有人从 ES 2.3 版到 5 版有这样做的经验? I have been told to snapshot and restore but cant find any documentation on how to do this through terraform.我被告知要进行快照和恢复,但找不到有关如何通过 terraform 执行此操作的任何文档。 Thanks谢谢

So I think we have figured it out.所以我想我们已经弄清楚了。 You cannot upgrade from Elasticsearch version 2.3 through terraform as it is just to old.您无法通过 terraform 从 Elasticsearch 2.3 版升级,因为它太旧了。 You need to manually create two new clusters, point you logs at that & then take a snapshot of the old cluster and restore it to the new one.您需要手动创建两个新集群,指向您的日志,然后拍摄旧集群的快照并将其恢复到新集群。 After version 5 of elasticsearch I believe you can upgrade through the terraform as long as your provider (eg AWS) is at least version 1.55.在 elasticsearch 版本 5 之后,我相信只要您的提供商(例如 AWS)至少是 1.55 版,您就可以通过 terraform 进行升级。 This should not need a snapshot as the cluster will be updated in place, I have been informed这应该不需要快照,因为集群将就地更新,我已被告知

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

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