[Bug]: OCA\DAV\BackgroundJob\RefreshWebcalJob takes way too long in cronjob and huge binlogs #40814
Open
5 of 8 tasks
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
25-feedback
bug
feature: caldav
Related to CalDAV internals
performance 🚀
Bug description
During the cronjob run there is excessive load on the database, the cron run takes about 10 minutes. I also generate 100-200mb of binlogs per minute.
When checking the oc_jobs table to see what takes so long this is the output:
The time needed for the RefreshWebcalJob seems to be extremly high.
There are also constantly high writes to the mariadb binlogs:
I needed to set up a cronjob that purges the old bin logs regularly to keep up with the amount of logs generated and not make the system explode instantly.
Steps to reproduce
I don't really know how to reproduce this, it just happens on my server when running the
sudo -u www-data php -f /var/www/nextcloud/cron.php
Expected behavior
I would expect the cron to run in a reasonable amount of time (which it did when first setting it up, I don't know when it got worse).
Installation method
None
Nextcloud Server version
25
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: