2 months ago
I am using Railway MySQL instance of 500mb and I noticed the warning saying that volume is at 95% capacity, in spite of DB dump showing much lower usage. I do not store a lot of data, but the volume kept growing in time.
I've done investigations and the is no index, table, dump etc. size to justify a volume anywhere near 500mb. Everything is around 60mb.
What is the reason for this and how can I clean up, in case this is caused by some sort of overhead files that Railway is generating?
Attachments
8 Replies
2 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
2 months ago
I'm having this exact same problem. My data size is around 60MB but the volume size was at 243MB. Then last night at 3:30 AM it started growing steadily until it hit the 500MB limit at around 1:12 PM even though my application and database were idle during this time. Increasing the volume size isn't the answer if it's just going to keep growing unctrolled.
2 months ago
Hello,
The actual size of the /var/lib/mysql volume mount is 399MB, plus some extra reported size for the filesystem overheard.
So the reported usage is correct and accurate.
Since we are not misreporting anything on our end, I will open this thread up to the community, where users may have ideas on how to clear out some MySQL usage.
Best,
Brody
Status changed to Awaiting User Response Railway • about 2 months ago
2 months ago
just realized his db is mysql, mine is postgresql, but similar issue. I opened a separate thread for mine. my db volume is at 500MB, so you'll find basically the same thing in my case, but I don't understand WHY it's taking up so much space when my db backup is only 60MB.
2 months ago
what are the file size or use of your MySQL Bin Files ? the SQL looks at the total usage, not just the size of your database tables.
https://www.cyberciti.biz/faq/what-is-mysql-binary-log/
2 months ago
nevermind, I figured out what happened in my case - problem in my application - wasn't idle after all.
brody
Hello,The actual size of the /var/lib/mysql volume mount is 399MB, plus some extra reported size for the filesystem overheard.So the reported usage is correct and accurate.Since we are not misreporting anything on our end, I will open this thread up to the community, where users may have ideas on how to clear out some MySQL usage.Best,Brody
2 months ago
hi brody,
If my whole MySQL dump, including the sys schema is 60.4MB, how can the volume be at 95% of the total 500MB? I have double checked this. Exported everything using Workbench.
Please enlighten me as to how I could be checking what is taking the remaining space, up to your reported 399MB? (which excludes any filesystem overheard)
binlog is OFF in my MySQL instance. I ran "SHOW VARIABLES LIKE 'log_bin'" and "SHOW BINARY LOGS" to confirm this.
innodb_file_per_table is ON.
Then I also ran this query and confirm that whole DB size is not over 100 MB in practice:
SELECT table_schema AS "Database",
ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS "Size_MB"
FROM information_schema.tables
GROUP BY table_schema
ORDER BY Size_MB DESC;
What else could it be?
brody
Hello,The actual size of the /var/lib/mysql volume mount is 399MB, plus some extra reported size for the filesystem overheard.So the reported usage is correct and accurate.Since we are not misreporting anything on our end, I will open this thread up to the community, where users may have ideas on how to clear out some MySQL usage.Best,Brody
2 months ago
Still looking for a meaningful answer here.
Could you please check the specifics of what exactly adds up to those 399MB? It would be easy for someone at Railway to verify.
Thank you