The single page we do have on optimizing NextCloud performance, in itās entirety, only refers to configuration a depreciated feature (static file caching, i.e. assets folder). I have spent so much time searching on this topic and I would like to get input on anything others know about improving NextCloud performance. I will compile it all into a single post and share the link until it can be posted to the wiki.
I have ran many ownCloud & NextCloud servers on some pretty high-end hardware. Needless to say it doesnāt run near as fast as many other webapps, even other dynamic php-based platforms. Obviously itās not going to run like a static HTML site, but there has got to be many improvements that can be made.
Assuming one has installed NextCloud per default instructions (Apache, MySQL, PHP 5.6), and nothing else has been done, what can be done to increase speed and optimize performance of NextCloud and all subsystems?
It would be useful to hear any experience running alternate versions of PHP (PHP-FPM, HHVM, etc), alternate Databases, various database optimizations (anything done beyond a default install of MySQL), static file caching through reverse proxies (Nginx, etc), alternate webservers (Nginx, Litespeed, LigHTTPD, etcā¦) and, redis optimizations, as well as alternate memcache implementations, and anything else that can optimize/increase performance and response time.
UPDATED 11/25/16
Unverified / Further Testing Needed / Unknown:
.
.
- Install non-redis memcache?? - Compatibility and performance unknown.
- Alternate DB Server (MariaDB, Postgres, etc)ā¦ - Compatibility and performance unknown.
- Alternate webserver (Nginx, Lighttpd, Litespeed, etc) - Compatibility and performance impact unknown, Further testing needed.
- Nginx Caching in front of Apache - Performance impact unknown. Further testing needed
- PHP-FPM - Compatibility unknownā¦
- HHVM - Compatibility unknownā¦
-
MySQL Performance Tuning - Significant performance improvements possible. More testing and specifics needed.
. . Tuning Primer ā Performance metrics and specifics TBD.
. . MySQLTuner ā Performance metrics and specifics TBD.
ā¦
ā¦
ā¦
Verified Performance Optimizations:
.
.
- MySQL buffer tweak to drastically increase performance syncing large # of small files on RaspberryPi.
- Install Redis for memcaching - Significant performance increase - Metrics TBD.
- Upgrade to PHP 7 - Improves performance approx x2. Exact metrics TBD.
ā¦
ā¦
ā¦
ā¦
ā¦
ā¦
.
Thanks!
Mike