-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
binlog files are growing excessively big and fast: 2 days of binlogs > 73G #32036
Comments
Posting from 16.04.2022 I have got the same problem: Now I set 'binlog_expire_logs_seconds = 172800' If I check these files using 'less' I see mostly ics calendar data. 🧐 Posting from 19.04.2022 Even tho I limited binlogs to 2 days the over all size is still growing (time intervals from file to file are getting shorter: currently about 4 min at binlog-files 101M):
mysql database size: 148,4 MB This is getting absurd… any tips how to contain this? Thanks, 21.04.2022 today I'm at 73G (2 days of binlog files) |
Are you using replication? If not, what's the point of using binlogs? https://simonauer.medium.com/disabling-mysql-binary-logging-c43ce9aeac2e |
Thanks for your reply!
If it's safe to turn off, and it's not needed for Nextcloud "backup" app or any other built in service, I might just turn it off. Is it safe just turning it off? (The VPS is also taking snapshots and backups on the hosting side, no replication). Thanks, paradeiser |
If this is expected or not, i can't tell, but if there are many writes to the DB, binary log will grow fast for sure.
This goes under of system administration, but here you have an answer : https://dba.stackexchange.com/a/310083/246216 |
Honestly this is a config issue. Just disable the binlogs and the problem is solved. |
Just turning the binlog off is not an option if you have a replication setup. The binlog is full of statements such as "UPDATE cf. issue #27603 |
I am having the exact same problem and it just started when I upgraded to version 24. This is definitely not a config issue because same my.cnf file has been in use for 4+ years without having to resort to turning off my bin log. Granted I don't use it, so turning it off has stopped my disk space from disappearing, but something has happened. |
Can someone reopen this issue? I got the same after upgrading to NC 24.0.4 Yesterday. I have a flood of |
Since a few days I'm facing the exact same issue on 26.0.13. I know it's outdated, but has anybody figured out the reason? It can't be directly related with an update, since I did not update anything in the recent past. |
Got this problem too. Increased the VM disk size already a month ago. It doubled in a month from 8 GB to 16 GB without adding any files. No external drive removed. Just a nextcloud instance sitting there. Was on 21.0.4 or so, just upgraded to 21.0.5 and now upgrading to 22.2.0
Basically this problem arose this summer with more or less the same files which were on this server all the time.
Edit:
It doesn't seem to be
oc_filecache
AFAIKS:It seems that mysql's binlog keeps growing on my machine:
I continue to investigate this and leave this note here since this can be a culprit as well.
Edit 2:
Yep, binlog seems to grow with the latest nextcloud releases at least on my machine.
I lowered the binlog expiration time from 30 days to one week:
Restart the mysql service and voilà:
This lowered the footprint drastically:
Originally posted by @cls-nebadje in #7312 (comment)
The text was updated successfully, but these errors were encountered: