Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Aurora RDS instance can not be stopped

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

Am I missing something.

like image 713
j10 Avatar asked May 15 '17 05:05

j10


People also ask

How do I stop Aurora instance?

To stop a DB instance by using the AWS CLI, call the stop-db-cluster command with the following parameters: --db-cluster-identifier – the name of the Aurora cluster.

Can RDS instance be stopped?

You can't stop an Amazon RDS for SQL Server DB instance in a Multi-AZ configuration. You can't modify a stopped DB instance. You can't delete an option group that is associated with a stopped DB instance. You can't delete a DB parameter group that is associated with a stopped DB instance.

How do I stop automatic RDS instance?

Open the Amazon RDS Console. In the navigation pane, Choose Databases. Choose the DB instance that you want to start and stop automatically.

What are some of the common causes why you Cannot connect to a DB instance on AWS?

When you can't connect to a DB instance, the following are common causes: Inbound rules – The access rules enforced by your local firewall and the IP addresses authorized to access your DB instance might not match. The problem is most likely the inbound rules in your security group.


1 Answers

Edit: 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.

Additionally, see:

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

Edit: 2018/08/13 - Serverless Aurora supports infrequent access workloads

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:

enter image description here

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.


Edit: 2017/06/01 - RDS can now be stopped/started, per this announcement, but does not support Aurora yet.

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.

Additionally, see:

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

Alternative suggestion for incompatible configurations:

This includes:

  • Aurora via old SDKs prior to September 2018
  • Old SDKs prior to June 2017
  • RDS with Multi-AZ
  • RDS with read replica
  • RDS with SQL Server Mirroring

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.

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.

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.

Further Reading

  • AWS RDS Documentation - Delete Instance with Final Snapshot
  • AWS RDS Documentation - Restoring From a DB Snapshot
like image 135
Anthony Neace Avatar answered Oct 31 '22 16:10

Anthony Neace