Amazon Aurora
User Guide for Aurora (API Version 2014-10-31)

Modifying an Aurora Serverless DB Cluster

After you configure an Aurora Serverless DB cluster, you can modify its scaling configuration with the AWS Management Console, the AWS CLI, or the RDS API.

You can set the minimum and maximum capacity for the DB cluster. Each capacity unit is equivalent to a specific compute and memory configuration. Aurora Serverless automatically creates scaling rules for thresholds for CPU utilization, connections, and available memory. You can also set whether Aurora Serverless pauses the database when there's no activity and then resumes when activity begins again.

You can set the following specific values:

  • Minimum Aurora capacity unit – Aurora Serverless can reduce capacity down to this capacity unit.

  • Maximum Aurora capacity unit – Aurora Serverless can increase capacity up to this capacity unit.

  • Pause after inactivity – The amount of time with no database traffic to scale to zero processing capacity. When database traffic resumes, Aurora automatically resumes processing capacity and scales to handle the traffic.

Console

You can modify the scaling configuration of an Aurora DB cluster with the AWS Management Console.

To modify an Aurora Serverless DB cluster

  1. Open the Amazon RDS console at https://console.aws.amazon.com/rds/.

  2. In the navigation pane, choose Clusters.

  3. Choose the Aurora Serverless DB cluster that you want to modify.

  4. For Actions, choose Modify cluster.

  5. In the Capacity settings section, modify the scaling configuration.

    
                         Setting minimum and maximum capacity for an Aurora Serverless DB cluster with console
  6. Choose Continue.

  7. Choose Modify cluster.

    The change is applied immediately.

AWS CLI

To modify the scaling configuration of an Aurora Serverless DB cluster using the AWS CLI, run the modify-db-cluster AWS CLI command. Specify the --scaling-configuration option to configure the minimum capacity, maximum capacity, and automatic pause when there are no connections. Valid capacity values are 2, 4, 8, 16, 32, 64, 128, and 256.

In this example, you modify the scaling configuration of an Aurora Serverless DB cluster named sample-cluster.

For Linux, OS X, or Unix:

aws rds modify-db-cluster --db-cluster-identifier sample-cluster \ --scaling-configuration MinCapacity=2,MaxCapacity=24,SecondsUntilAutoPause=500,AutoPause=true

For Windows:

aws rds modify-db-cluster --db-cluster-identifier sample-cluster ^ --scaling-configuration MinCapacity=2,MaxCapacity=24,SecondsUntilAutoPause=500,AutoPause=true
RDS API

You can modify the scaling configuration of an Aurora DB cluster with the ModifyDBCluster API action. Specify the ScalingConfiguration parameter to configure the minimum capacity, maximum capacity, and automatic pause when there are no connections. Valid capacity values are 2, 4, 8, 16, 32, 64, 128, and 256.