My Prod is down: MySQL volume ran out of disk space

Hi Railway team, I'm in full mode crisis. My MySQL volume is full, and it doesn't let me increase the field is set at 50GB. The project is: f5925531-2de0-4da9-8a6d-15b5ba712ebe I need to increase it now! I'm down in prod. Other than that, it's weird that it got that big because my MySQL DB was 2-3GB tops. So maybe it's logs getting accumulated? Please help.
11 Replies
Percy
Percy8mo ago
Project ID: f5925531-2de0-4da9-8a6d-15b5ba712ebe
rickitan
rickitanOP8mo ago
Ok I was able to fix this by purging MySQL binary logs. They were taking 30+ GB. I recommend adding alerts when the volume is going to be full.
Brody
Brody8mo ago
going forward let's disable binary logging, set this as your start command for the mysql database -
docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0
docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0
rickitan
rickitanOP8mo ago
@Brody where can I set that start command?
rickitan
rickitanOP8mo ago
No description
rickitan
rickitanOP8mo ago
there right? Will there be any side effects of turning off binary logging? Also, now that I have you here! Do you have any tips for lowering my MySQL memory consumption?
rickitan
rickitanOP8mo ago
No description
rickitan
rickitanOP8mo ago
I have about 2GB worth of data on my DB but it takes 4-7 GB of ram.
Brody
Brody8mo ago
Will there be any side effects of turning off binary logging?
none that i know of, all newly deployed mysql databases come with it disabled.
Do you have any tips for lowering my MySQL memory consumption?
--performance_schema=0 will cut down on a tiny amount of the memory
rickitan
rickitanOP8mo ago
perfect thank you so much. Super appreciated! The situation was tense because: 1. I noticed I had ran out of memory because prod was down 2. I went to increase the size but its capped at 50gb 3. Then I had to figure out what was taking space and clear it
Brody
Brody8mo ago
I understand, and if you hadn't already solved it by the time I woke up I would have gotten a team member involved immediately to bump that limit since you're pro
Want results from more Discord servers?
Add your server