本文介绍了Aurora RDS实例无法停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试Amazon Aurora实例,但看不到停止它的选项.唯一的选项是删除"和重新启动".

I am trying Amazon Aurora instance and I can not see an option to stop it. The only options are Delete and Reboot.

我错过了什么吗?

推荐答案

2018/09/25-Amazon Aurora现在支持停止和启动数据库集群

为此公告,Aurora现在支持启动和停止数据库实例.该功能是去年为其他RDS配置发布的,在此实现中的行为通常相同.停止数据库集群将停止主实例和所有Aurora副本.该数据库将保持停止状态7天,之后它将自动重新启动.

2018/09/25 - Amazon Aurora Now Supports Stopping and Starting of Database Clusters

Per this announcement, Aurora now supports starting and stopping the db instance. This feature was released for other RDS configurations last year and generally behaves the same in this implementation. Stopping the database cluster stops the primary instance and any Aurora replicas. The database will remain stopped for 7 days, after which it will be automatically restarted.

另外,请参阅:

  • AWS Documentation - Stopping and Starting a DB Instance
  • AWS CLI Documentation - aws rds start-db-instance
  • AWS CLI Documentation - aws rds stop-db-instance

根据此公告,Serverless Aurora已发布,并且具有连续N分钟不活动后暂停计算能力的功能.这是公告博客中此配置的示例:

Per this announcement, Serverless Aurora has been released and has a feature to pause compute capacity after N consecutive minutes of inactivity. Here's an example of this configuration from the announcement blog:

该值最多可配置1440分钟(24小时),相当于停止" Aurora实例,因为在计算容量暂停时您无需为计算容量付费,而仅是数据库存储.

This value is configurable up to 1440 minutes (24 hours), and would be comparable to "stopping" an Aurora Instance because you are not paying for compute capacity while compute capacity is paused, only database storage.

如果您的用例包括不经常访问的内容(例如:下班后不使用的开发实例),那么这是当前最简单的选择.

If your use case includes infrequent access (example: a dev instance that is not used after-hours), then this is currently the easiest option available.

在AWS控制台中,问题正文中描述的同一菜单中提到了停止"选项.停止的实例将保留其存储,但是只有重新启动后才能对其进行修改.实例无法永久停止-七天后,已停止的实例将自动重新启动.

In the AWS console, a 'Stop' option has been mentioned to the same menu described in the question body. A stopped instance retains its storage but cannot be modified until it is started again. Instances cannot be permanently stopped -- after seven days, a stopped instance will be automatically started again.

不幸的是,某些配置仍然不支持此功能.请参见下面的分隔符.

Unfortunately, some configurations still don't support this feature. See below the break for an alternative.

另外,请参阅:

  • AWS Documentation - Stopping and Starting a DB Instance
  • AWS CLI Documentation - aws rds start-db-instance
  • AWS CLI Documentation - aws rds stop-db-instance

这包括:

  • Aurora通过2018年9月之前的旧版SDK
  • 2017年6月之前的旧SDK
  • 具有多可用区的RDS
  • 具有只读副本的RDS
  • 具有SQL Server镜像的RDS

RDS实例无法像EC2实例一样随意停止和启动.但是,您可以通过删除带有最终快照的RDS实例,然后稍后返回以从该数据库快照还原RDS实例,来近似此行为.

RDS instances in these situations cannot be stopped and started at-will like an EC2 instance. You can, however, approximate this behavior by deleting the RDS instance with a final snapshot, and then returning later to restore an RDS instance from that DB snapshot.

这近似于停止",因为一旦获取了最终快照,就不会再写入新数据,并且您也不必为运行中的RDS实例付费.就像您为停止的EC2实例上附加的任何EBS卷付费一样,您将继续为数据库快照在存在时的存储空间付费.

This is approximate to "stopping" because no new data will be written once your final snapshot is taken, and you also won't be paying for a running RDS instance. In the same way that you would pay for any EBS volumes attached to your stopped EC2 instance, you will likewise continue paying for the storage of the DB snapshot while it exists.

此行为与停止EC2实例不同,后者不再存在基础架构.从快照还原时,将在新的RDS实例上进行还原,还原将需要一些时间才能完成,具体取决于基础架构和快照的大小.

This behavior diverges from stopping an EC2 instance inthat the underlying infrastructure will no longer exist. When you restore from snapshot, that will be on a new RDS instance and that restoration will take some time to complete, depending on the size of both your infrastructure and snapshot.

  • AWS RDS Documentation - Delete Instance with Final Snapshot
  • AWS RDS Documentation - Restoring From a DB Snapshot

这篇关于Aurora RDS实例无法停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 01:04