[SAC] [OSGeo] #3017: Optimize speed of nextcloud

OSGeo trac_osgeo at osgeo.org
Thu Nov 2 10:03:33 PDT 2023


#3017: Optimize speed of nextcloud
----------------------+--------------------------------------
 Reporter:  robe      |      Owner:  sac@…
     Type:  task      |     Status:  new
 Priority:  normal    |  Milestone:  Sysadmin Contract 2023-I
Component:  SysAdmin  |   Keywords:
----------------------+--------------------------------------
 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
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/3017>
OSGeo <https://osgeo.org/>
OSGeo committee and general foundation issue tracker.


More information about the Sac mailing list