Scaling owncloud to multiple servers: cron and cache problems?

We want to start owncloud on 3 machines and use a load balancer to distribute the traffic between them.

We got an external database and we got the storage connected via gluster. Sessions are also shared between them using redis.

However, I asked myself 2 questions:

  1. What about the cron jobs of owncloud? Won't each server execute the cron jobs in parallel? May this lead to problems?
  2. What about the APCi cache? We have activated it in the config.pjp ('memcache.local' => '\OC\Memcache\APCu'). Should we deactivate it in order to avoid that changes on server 1 cause problems from a cached result whent he next request arrives at server 2?

I checked https://doc.owncloud.org/server/8.0/admin_manual/operations/scaling_multiple_machines.html and https://severalnines.com/blog/high-availability-file-sync-and-share-deploying-owncloud-galera-cluster-mysql-and-glusterfs but both don't discuss the 2 things above.

Best regards,

Sven

Hi SvenAbels,

  1. Starting with oC 9.1 multiple parallel cron jobs are supported. Therefore it is ok to configure a cron job on each server.

  2. You should still configure APCu as local cache on each oC server and use Redis as distributed cache and for Transactional File Locking. Please refer to: https://doc.owncloud.org/server/latest/admin_manual/configuration/server/caching_configuration.html#large-organization-clustered-setup

1 Like

Thanks a lot for the fast help. This seems to work perfectly dfine now. :slight_smile: