Is cron every 15 min excessive?

Hi

It is recommended in the docs to run cron every 15 mins like

*/15 * * * * php -f /var/www/nextcloud/cron.php

Is not this excesssive? Why am I running this scan every 15 mins? What is that requires this running every 15 min?

thanks

I’m personally also running the job every 15min and had not problems with it until now.
It has been the original recommendation until Nextcloud v14. Since Nextcloud v15 the recommendation has changed to run the job every 5min.

What are your concerns about running cron every 15 minutes?

Cron does not mean “scanning for new files”. File changes are identifed by inotify or similar techniques. Cron send notifications to your users and other stuff.

Well, I was seeing massive IO use by the cron job. I can’t be sure which NC app could use it. I am not even sure if every app has its own cron or if all rely on the main NC cron?

For instance could full text search rely on the main cron job?

In total I’ve now the following three cron jobs running for my whole Nextcloud installation. To be honest I don’t know exactly what the mentioned job is exactly for, maybe @rakekniven can shed some light on it?

 */14 * * * * .../nextcloud-cron.sh
*/14 * * * * .../nextcloud/occ trashbin:expire --quiet 2>/dev/null
22 2 * * 0 .../nextcloud/occ preview:pre-generate --quiet 2>/dev/null