tl;dr: Server performance issues, seemed mainly the automated backups. Cronjob entirely disabled: everything fine.
Disabled automated backups, reenabled cronjob: Execute adhoc task: core\task\course_backup_task still pops up, even after 24 hours of being disabled.
First of all, I'm new to Moodle and moodle.org, my apologies in advance for any rookie mistakes or whatsoever!
I do am an experienced developer, mainly .NET, so I should be able to gasp at least some concepts.
So far the intro...
We are using Moodle 3.9 on Linux.
We are struggling with the performance of our server, that hard that we are receiving calls from our hosting partner to kindly ask us not to do whatever we are doing.
It seemed that our problems have to do with the cronjobs, once disabled our suspicion was confirmed.
So I started running all tasks from the cronjob-list manually, but all seemed fine. So probably an adhoc task, after some investigation, most certainly the automated backup task (Execute adhoc task: core\task\course_backup_task keeps busy until the time-treshold is reached).
I disabled the automated course backup task, and ran the cronjob a few times at "nice -n 19" + set the niceness of the heavy consumers to 19 as well (htop). Backups didn't appear in the list anymore, so I thought I had it sorted.
Performance stayed bad with the cronjob enabled, but not as bad as before, That part seemed related to our MySql-instance, so we probably have to upgrade to a higher tier.
But, tonight I saw that "Execute adhoc task: core\task\course_backup_task" was again running:
Execute adhoc task: core\task\course_backup_task
... started 20:03:38. Current memory use 113.3MB.
Processing automated backup for course
How is this possible?
What can I do to improve the performance once we sorted this out?
this issue and tried
Thanks in advance,