• Relational Database Service

rds
  1. Help Center
  2. Relational Database Service
  3. User Guide
  4. FAQs
  5. Storage FAQs
  6. What Should I Do If My Data Exceeds the Database Storage Space of an RDS DB Instance?

What Should I Do If My Data Exceeds the Database Storage Space of an RDS DB Instance?

Scenario

The database storage space of an RDS DB instance is exhausted, and applications cannot read data from or write data to databases, interrupting services.

Cause

  1. Data occupies a great amount of storage space.
  2. A large number of binlog files are generated due to a large number of transactions and write operations.
  3. A large number of temporary files are generated due to a large number of sorting queries executed by applications.

Solution

  1. If data occupies too much storage space, run DROPTRUNCATE, or DELETE+OPTIMIZE TABLE to delete useless historical table data to release storage space. If no historical data can be deleted, scale up your storage space.
  2. If binlog files occupy too much storage space, contact technical support to delete local binlog files to release storage space.
  3. If temporary files generated by sorting queries occupy too much storage space, optimize your SQL query statements.
  4. If the preceding solutions are invalid, implement database and table sharding.