将永久磁盘类型更改为 SSD

发布于 2025-01-12 23:25:45 字数 185 浏览 3 评论 0 原文

我有一个 Elasticsearch 在 GKE 集群上作为 ECK 运行,用于生产目的,为了提高其性能,我正在考虑将永久性磁盘类型更改为 SSD。我遇到的解决方案需要在 GCE 中创建磁盘快照,然后使用存储在快照中的数据创建另一个 SSD 磁盘。我仍然担心它是否仍然存在数据丢失的风险,如果我创建另一个磁盘,我的弹性磁盘是否能够匹配它,因为它是有状态的。

I have an elasticsearch running as a ECK on a GKE cluster for production purposes and in order to increase its performance I'm thinking of changing the persistent disk type to ssd. I came accross solutions that incite the need to create a snapshot of the disk in GCE and then create another ssd disk with the data stored in the snapshot. I'm still concerned whether it still has a risk of data loss and if I create another disk will my elastic be able to match it or not as it is statefulset.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

青衫负雪 2025-01-19 23:25:45

由于这是生产部署,我建议执行以下操作:

  1. 创建卷快照 (doc)。
  2. 设置辅助集群 (doc)。
  3. 修改部署,使其使用 SSD (文档)。
  4. 部署到第二个集群。

一旦这个新部署经过全面测试,您就可以切换流量。

Since this is a production deployment I would advise to do as follows:

  1. Create a volume snapshot (doc).
  2. Set up a secondary cluster (doc).
  3. Modify the deployment so that it uses an SSD (doc).
  4. Deploy to the second cluster.

Once this new deployment has been fully tested you can switch over the traffic.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文