Use Auto Scaling

When you create an Autonomous AI Database instance, by default compute auto scaling is enabled and storage auto scaling is disabled. You can manage auto scaling from the Oracle Cloud Infrastructure Console to enable or disable compute auto scaling or storage auto scaling.

Compute Auto Scaling

With compute auto scaling enabled the database can use up to three times more CPU and IO resources than specified by the number of ECPUs (OCPUs if your database uses OCPUs) as shown in the ECPU count or OCPU count field on the Oracle Cloud Infrastructure Console.

When auto scaling is enabled, if your workload requires additional CPU and IO resources, the database automatically uses the resources without any manual intervention required. For example:

Enabling compute auto scaling changes the concurrency and parallelism settings for the predefined services. See Manage Concurrency and Priorities on Autonomous AI Database for more information.

Note: Your license type determines the ECPU count maximum. For example, if your license type is Bring your own license (BYOL) with Oracle AI Database Standard Edition (SE), the ECPU count maximum is 32.For this license type the maximum allowed value for ECPU count is 32. With compute auto scaling enabled you can use up to ECPU count x 3 ECPUs. This license restricts the number of ECPUs you can use to a maximum of 32 ECPUs, with or without compute auto scaling enabled.

When compute auto scaling is enabled your database may use and you may be billed for additional CPU consumption as needed by your workload, up to three times (3x) the number of base CPUs (as shown in the ECPU count or OCPU count field on the Oracle Cloud Infrastructure Console). See Oracle Autonomous AI Database Serverless Features Billing for details on compute auto scaling billing.

See Add CPU or Storage Resources or Enable Auto Scaling for the steps to enable compute auto scaling.

Storage Auto Scaling

When you create an Autonomous AI Database instance, by default Storage auto scaling is disabled. You can manage scaling and enable storage auto scaling from the Oracle Cloud Infrastructure Console or using the API.

With Storage auto scaling enabled, the Autonomous AI Database can expand to use up to three times the reserved base storage, as specified by the storage shown in the Storage field on the Oracle Cloud Infrastructure Console. If you need additional storage, the database automatically uses the reserved storage without any manual intervention required.

You specify the base storage when you provision or clone your database, or you can change the storage at any time by clicking Manage resource allocation under More Actions in the OCI console and changing the storage size. Depending on your workload type and the compute model selection, you have these options to specify the reserved base storage units:

Using the Oracle Cloud Infrastructure Console or the APIs you can provision or auto scale an Autonomous AI Database instance’s storage up to 384 TB. For storage requirements larger than 384 TB, Oracle recommends that you file a Service Request at Oracle Cloud Support.For example, if your storage is 100 TB and storage auto scaling is enabled, you have access to a maximum of 300 TB of storage and if your storage is 200 TB, you have access to a maximum of 384 TB (if you requested a larger maximum by filing a service request, then the maximum would be your custom maximum size).

As data flows in, depending on your workload type, you are billed as follows:

For example, when the Workload type is Lakehouse, if your reserved base storage is 4 TB, until your allocated storage exceeds 4TB of storage, you are billed based on your base storage (4 TB). After you exceed 4 TB, storage is billed based on the allocated storage rounded up to the nearest TB, in a given hour. In this example, if the allocated storage grows over 4 TB in a given hour, say to 4.9 TB, you are billed for 5 TB of storage from that hour onward.

If you then delete 1 TB of data, your allocated storage remains at 4.9 TB and you are billed for 5 TB until you perform a shrink operation. When you perform a shrink operation, Autonomous AI Database may be able to reduce your allocated storage back to 3.9TB (shrinking the data and undo tablespaces). After the shrink operation completes and your allocated storage (3.9TB) is once again within your reserved base storage (4 TB), you will once again be billed for your reserved base storage of 4 TB. See Shrink Storage for more information.

Note: Reducing temp tablespace requires a database restart.

If you disable Storage auto scaling and the used storage is greater than the reserved base storage, as specified by the storage shown in the Storage field on the Oracle Cloud Infrastructure Console, Autonomous AI Database shows a warning on the disable storage auto scaling confirmation dialog. The warning lets you know that the reserved base storage value will be increased to the nearest TB greater than the actual storage usage on a Lakehouse workload instance, or to the nearest GB greater than the actual storage usage on a Transaction Processing workload instance, and shows the new reserved base storage value.

To see the Autonomous AI Database instance storage usage, you can view the “Storage allocated” and “Storage used” graphs on the Overview tab by clicking the Database Dashboard card in Database Actions. See Database Dashboard Overview for more information.

See Add CPU or Storage Resources or Enable Auto Scaling for the steps to enable storage auto scaling.

Note the following when you enable Storage auto scaling:

Shrink Storage

When the storage used in the database is significantly lower than the allocated storage, the shrink operation reduces the allocated storage.

To understand storage allocation and the shrink operation, note the following:

Note: The Shrink operation is not available with Always Free Autonomous AI Database.

To shrink storage:

  1. On the More Actions drop-down list of the OCI console, click Manage resource allocation.

  2. In the Manage resource allocation area, select Shrink.

    Description of image follows

    Description of the illustration adb_scale_dialog.png

  3. Click Confirm in the Shrink Database dialog.

Note: The Shrink operation is a long running operation.

The Shrink operation requires that all of the following apply:

When you click Shrink and these conditions are not met, Autonomous AI Database shows the Action unavailable dialog.

Note the following for the Shrink operation: