#3017 closed task (fixed)
Optimize speed of nextcloud
Reported by: | robe | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | Sysadmin Contract 2023-I |
Component: | SysAdmin/Nextcloud | Keywords: | |
Cc: |
Description
I did some revisiting of nextcloud slowness.
I made the following changes which seemed to improve things a lot.
Changed to use redis (for non-local e.g. locking work), this didn't seem to improve that much.
apt install redis apt install php-redis #edit /var/www/nextcloud/config/config.php right after: 'memcache.local' => '\\OC\\Memcache\\APCu', 'memcache.distributed' => '\OC\Memcache\Redis', 'memcache.locking' => '\OC\Memcache\Redis', 'redis' => [ 'host' => 'localhost', 'port' => 6379, ],
systemctl restart php8.1-fpm
But I also changed the php-fpm and I think I had these set too high, for the 32gb ram I had allocated, so reduced these. I think this made the most difference.
#the most improved performance, happened when tweaking
nano /etc/php/8.1/fpm/pool.d/www.conf
pm.max_children = 30 pm.start_servers = 7 pm.min_spare_servers = 7 pm.max_spare_servers = 22
systemctl restart php8.1-fpm
Change History (3)
comment:1 by , 14 months ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 14 months ago
comment:3 by , 14 months ago
Component: | SysAdmin → SysAdmin/Nextcloud |
---|
Note:
See TracTickets
for help on using tickets.
I also made adjustments to the postgresql config as suggested here - https://docs.nextcloud.com/server/latest/admin_manual/configuration_database/linux_database_configuration.html
was this
after changed to
also noted these changes in https://git.osgeo.org/gitea/sac/osgeo7/wiki/Nextcloud-Ubuntu-Setup and in git local repo