I am trying to use two Nextcloud instance (2 servers) which are connected one DB. Is possible that two Nextcloud have one common database? As database server I am using Percona DB cluster. Also I am using common storage system for both instances via CEPH.
But every time when I am trying to use 2 Nextcloud suddenly, the load time of main page with storage is something about 20 - 50s, which is really much. I think it is caused because two Nextclouds are trying write to DB at the same time.
Is there any solution how to repair it?
Maybe if I am using one DB for more Nextcloud it is needed to use tools like Corosync, Pacemaker?
Thank you very much for help!
Nextcloud version 12
Operating system Debian 8:
PHP version 5.6: