Resolving Insufficient Storage Issues for RDS for MariaDB Instances
Storage usage is an important metric for measuring the performance of your DB instances. If the available storage space is insufficient, your DB instance may encounter serious issues. For example, data cannot be backed up or written into databases, or scaling up storage takes an extended period of time.
Viewing Storage Space Usage
- On the Basic Information page, you can see how much of your instance storage and backup space has been used. However, this page does not provide any details about what different types of data are being stored.
- To view the historical usage and the changes over time, click View Metrics on the Basic Information page.
Insufficient Storage Caused by Excessive Indexes
Insufficient Storage Caused by Large Fields
Insufficient Storage Caused by Excessive Idle Tablespaces
- Cause and symptom
If the fragmentation ratio of an InnoDB table is high, there will be an excessive number of idle tablespaces. InnoDB manages tablespaces by page. If some records of a full page are deleted and no new records are inserted into the positions these records were deleted from, a large number of tablespaces will be idle.
- Solution
Run the show table status like '<Name of the table>'; command to query idle tablespaces. If there are too many tablespaces, run the optimize table '<Name of the table>'; command to manage the tablespaces.
Insufficient Storage Caused by Excessively Large Temporary Tables
- Cause and symptom
When you perform a semi-join, distinct, or sort operation without using an index on a table, a temporary table is created. If the temporary table contains an excessive amount of data, the storage usage for the temporary table may be excessively high.
When you execute data definition language (DDL) statements to rebuild tablespaces that are used to store the data of a large table, the temporary table that is generated from an index-based sort operation will also be large.
- Solution
View the plans that the DDL statements were based on. Check whether the Using Temporary field was specified.
Before you execute DDL statements on large tables, check whether your DB instance provides sufficient storage space. If the available storage space is insufficient, scale up the storage space of your DB instance before executing the statements.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot