MySQL BinLog Eating up Disk Space
Got Disk Usage Alarms for 3 days in a row - even I have deleted some files.
Run find / -printf '%s %p\n'| sort -nr | head -10 to find out the 10 largest file and it turns out there are the bin logs used by mysql server.
Login to MYSQL server:
and delete log files older than 3 days
PURGE BINARY LOGS BEFORE DATE(NOW() - INTERVAL 3 DAY) + INTERVAL 0 SECOND;
Set binlog to auto rotated (keep 3 days):
SET GLOBAL binlog_expire_logs_seconds = 86400*3;
then add this to /etc/my.cnf
[mysqld]
expire_logs_days=3
Steemit is still moving like a sick snail.... :((
how about now? It is improving on my side
Yes... it is improving on my side as well... now it's working very good!
Andddddd today I have upvoted my 1st witness vote to you Respected Sir @justyy :)
How are you feeling @justyy, any better my friend?😊
Thanks. feeling much better now.
Very good to hear that @justyy, take care!!😀
This is crazy. Only 3 days. I did a search and saw someone suggested deleting after 1 month. Isn't there a cold store option you can move to after 3 days?
they are logs, logs are only important if you want to do replica the data.
In my previous place, we have requirement to keep them for 1 year in case need to investigate any user do any funny thing.
Hello Sir, I have delegated the power of 170 steem to you. I get only 0.03 votes. Will that give me enough votes? Please explain to me about this.