我可以自动启动我的 memoryDB 实例还是始终开启?

发布于 2025-01-17 07:34:31 字数 62 浏览 5 评论 0原文

我问这个是因为这项服务的定价方法,显然我是按小时付费的,这似乎积累了很多钱。可以根据使用情况停止并重新启动吗?

I'm asking this due to pricing methods of this service, apparently I'm paying by the hour which seems to accumulate a lot of money. Can I stop and restart according to use?

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

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

发布评论

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

评论(1

迟月 2025-01-24 07:34:31

遗憾的是,与 EC2 虚拟机实例不同,AWS MemoryDB for Redis 服务不支持停止和重新启动集群。我们可以说它始终如您所说。不过,您可以拍摄数据快照。这可能会达到你所需要的。

该过程将如下所示:

  1. 创建一个新的 MemoryDB 集群。
  2. 根据需要使用该集群。
  3. 删除集群。删除时,请确保拍摄最终快照。如果您使用AWS控制台,系统实际上会询问您是否想要最终快照。
  4. 当您想继续使用 MemoryDB 时,请创建一个新集群并指定您在上一步中拍摄的快照作为起点。

然而,创建和删除 MemoryDB 集群可能需要几分钟的时间。因此,此过程可能不适合生产环境的大多数场景。

Unfortunately, AWS MemoryDB for Redis service does not support stopping and starting again clusters unlike EC2 virtual machine instances. We can say it is always on as you said. Nevertheless, you can take snapshots of your data. This may achieve what you need.

The process will be like this:

  1. Create a new MemoryDB cluster.
  2. Use this cluster as you want.
  3. Delete the cluster. When deleting, make sure you take a final snapshot. If you use AWS Console, the system will actually asks you if you want a final snapshot or not.
  4. When you want to continue to use MemoryDB, create a new cluster and specify the snapshot you took in previous step as starting point.

Yet, creating and deleting MemoryDB clusters can take a few minutes. So, this process may not be suitable for majority of scenarios for production environments.

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