I just upgraded my RDS Storage from 10GB to 20GB and after a couple of days RDS says Storage full again.
Running this query in MySQL workbench against the same DB says the DB size is 43MB
SELECT table_schema "database_name",
sum( data_length + index_length ) / 1024 /
1024 "Data Base Size in MB",
sum( data_free )/ 1024 / 1024 "Free Space in MB"
FROM information_schema.TABLES
GROUP BY table_schema ;
So is there something going on with the logs that MySQL creates or the backups etc that might fill up my storage space on the production servers.
Please help.
An Amazon RDS DB instance in the storage-full status doesn't have enough available space to perform basic operations, such as connecting to or restarting the instance. To resolve this issue, do the following: Confirm that the DB instance status is storage-full. Increase the allocated storage of your DB instance.
After you create an Amazon RDS DB instance, you can't modify the allocated storage size of the DB instance to decrease the total storage space it uses. To decrease the storage size of your DB instance, create a new DB instance that has less provisioned storage size.
All RDS for Microsoft SQL Server DB instances have a maximum storage of 16 TiB, so there are no entries for SQL Server. For more details about all instance classes supported, see Previous generation DB instances .
View the VolumeBytesUsed in the RDS consoleOpen the Amazon Relational Database Service console. Choose the AWS Region where you created the Aurora MySQL-Compatible DB cluster. Choose Databases from the navigation pane, and then choose the name of the DB instance that you want to monitor. Choose the Monitoring tab.
You can set the backup retention period from 1 to 35 days. The maximum retention period currently available for automated snapshots is 35 days. When automated backups are turned on for your DB Instance, Amazon RDS automatically performs a full, daily snapshot of your data and captures transaction logs.
Its probably mysql.slow_log table which takes so much space.
You can remove slow logs by executing following sql:
CALL mysql.rds_rotate_slow_log
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With