Files
doc-exports/docs/rds/umn/rds_08_0028.html
wangdengke2 64672e58fb rds_umn
Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com>
Co-authored-by: wangdengke2 <wangdengke2@huawei.com>
Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
2025-09-19 08:45:25 +00:00

12 KiB

Managing Storage Capacity

Function Description

Data and log storage space and its changes significantly impact database performance. RDS for MySQL shows you the distribution and changes of used storage on the Storage Analysis page. It also provides storage autoscaling, intelligent tablespace diagnosis, and analysis of top 50 largest databases and tables.

Table 1 Functions

Function

Description

Related Operations

Overview

You can view storage usage, available storage, total storage, daily increase in the last week, and estimated available days of storage.

Viewing the Storage Overview

Tablespaces

It shows you tables with abnormal tablespace growth, tables without primary keys, and tables without indexes.

Tablespaces

Used Storage and Used Storage over Time

You can view the distribution of storage space and its changes over time.

Disk Space Distribution

Top Databases and Tables

You can view the top 50 databases and tables by physical file size and identify the databases and tables with high usage based on storage space distribution.

Top Databases and Tables by Physical File Size

Viewing the Storage Overview

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click Service List. Under Database, click Relational Database Service. The RDS console is displayed.
  4. On the Instances page, click the target DB instance name.
  5. In the navigation pane, choose DBA Assistant > Real-Time Diagnosis.
  6. Click the Storage Analysis tab to view storage usage. If your storage is insufficient, scale it up. Or you can enable storage autoscaling.

    If the average daily increase in last week is 0 GB, the estimated available days of storage are unlimited and are not displayed.

Tablespaces

This function counts tables with abnormal tablespace growth, tables without primary keys, and tables without indexes. To use this function, subscribe to Intelligent O&M first.

  1. Click the Storage Analysis tab to view abnormal tables.
  2. Click Subscribe. In the displayed dialog box, you can learn about Intelligent O&M functions and pricing.
  3. After subscribing to Intelligent O&M, view the table diagnosis results of your instance.
  4. Click next to Auto Diagnosis. In the displayed dialog box, configure the daily tablespace increase limit and click OK.

    When the size of a single table is greater than the threshold, the system automatically filters the table and collects statistics on the number of such tables on the Tablespaces page. The system filters tables once a day.

Disk Space Distribution

You can view storage space distribution of your instance.

If the total number of files in your disk space (including data space, binlog space, slow query log space, relay log space, audit log space, temporary space, and other space) exceeds 10,000, RDS will not collect information about the files or display disk space distribution and usages over time on the console. This prevents performance slowdowns caused by collecting statistics on too many files. If this happens, contact technical support.

  • Data space: Disk space occupied by user data (including temporary table files)
  • Binlog: Disk space occupied by binlogs
  • Slow query log: Disk space occupied by slow logs
  • Relay log: Disk space occupied by relay logs
  • Audit log: Disk space occupied by audit logs
  • Temporary space: Disk space occupied by temporary files
  • Other: Disk space occupied by files such as ib_buffer_pool, ib_doublewrite, and error.log generated by the instance.

Top Databases and Tables by Physical File Size

You can view the top 50 databases and tables by physical file size and identify the databases and tables with high usage based on storage space distribution.

  • Physical file sizes are precisely recorded, but other fields' values are estimated. If there is a large gap between a file size and another field, run ANALYZE TABLE on the table.
  • A database or table whose name contains reserved special characters, including slashes (/) and #p#p, is not counted. #p#p identifies the table as a partitioned table.
  • Top databases and tables are available only in RDS for MySQL 5.7 and 8.0.
  • If the instance memory usage is greater than 85% or there are more than 50,000 tables in your instance, to prevent data collection from affecting the instance performance, top databases and tables will not be counted.

Click View Chart to view data volume changes in the last 7 days, last 30 days, or a custom time period (spanning no more than 30 days).