Full Storage of RDS for MySQL Instances
Symptom
There is not enough storage available for an RDS instance and the instance becomes read-only, so applications cannot write any data to the instance.
Causes
- Increased workload data
- Too much data being stored
- Excessive binlogs generated by a high volume of transactions and write operations
- Too many temporary files generated due to a large number of sorting queries executed by applications
Solution
- As your workload data grows, the original storage space may be insufficient. If this happens, scale up storage space.
If the storage capacity has reached the upper limit of your DB instance class, upgrade the instance class first.
- If too much data is stored, delete unnecessary historical data.
- If the instance becomes read-only, unlock it from this state first. If it is not read-only, delete the data directly.
- To free up space, you can run OPTIMIZE on tables with a high fragmentation rate during off-peak hours.
To clear an entire table, run DROP or TRUNCATE. To delete only part of table data, run DELETE. However, after performing DELETE, you need to run OPTIMIZE TABLE to reclaim the released storage space.
- If binlog files are taking up too much space, you can delete local binlogs to free up your storage.
- If temporary files generated by sorting queries occupy too much storage space, optimize your SQL 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