Hi everyone,
I’m currently running a self-hosted Nextcloud instance, and recently our user base and file volume have grown significantly. Lately, I’ve noticed that running background jobs via standard AJAX can sometimes cause slight sluggishness on the web UI during peak usage hours when large batches of files are being indexed or synchronized. I’ve been looking into shifting completely to system cron, but I want to ensure my interval settings and memory limits are dialed in correctly to prevent any overlap or resource spikes. For those running larger production instances: What cron execution intervals do you find most optimal (e.g., every 5 minutes)? Are there specific PHP memory limit (memory_limit) or OPcache settings you recommend tweaking specifically for smooth background file processing? Would appreciate any configuration tips or best practices from experienced admins here. Thanks in advance! Update: Thanks for the input everyone! If anyone is looking into similar resource optimization or scaling up self-hosted environments like this, I found some useful benchmarks over at cloudstream apk that helped clear up my cron intervals.
Here some details about setting up the cronjob:
It is the default setting. On low-activity setups, you can thin it out (e.g. on night time). Just some clean-up jobs, notifications etc, are a bit delayed. The cronjobs check if there is a process running, so there should be no overlap.
If you still have problems, don’t hesitate to share more details about your setup and related logfiles (in doubt, check the question in the template when you open a new topic in the support area).