diff --git a/nextcloud/docker-compose.yml b/nextcloud/docker-compose.yml index 00f35f4..d42f4f6 100644 --- a/nextcloud/docker-compose.yml +++ b/nextcloud/docker-compose.yml @@ -20,6 +20,7 @@ services: - ./hooks/post-installation.sh:/docker-entrypoint-hooks.d/post-installation/post-installation.sh:ro - ./hooks/post-upgrade.sh:/docker-entrypoint-hooks.d/post-upgrade/post-upgrade.sh:ro - ./fpm-tuning.conf:/usr/local/etc/php-fpm.d/zz-tuning.conf:ro + - ./php-tuning.ini:/usr/local/etc/php/conf.d/zz-tuning.ini:ro networks: - nextcloud-internal logging: diff --git a/nextcloud/fpm-tuning.conf b/nextcloud/fpm-tuning.conf index 3bc6ed0..b4b6719 100644 --- a/nextcloud/fpm-tuning.conf +++ b/nextcloud/fpm-tuning.conf @@ -1,7 +1,7 @@ [www] pm = dynamic -pm.max_children = 12 -pm.start_servers = 4 -pm.min_spare_servers = 2 -pm.max_spare_servers = 6 +pm.max_children = 5 +pm.start_servers = 2 +pm.min_spare_servers = 1 +pm.max_spare_servers = 3 pm.max_requests = 500 diff --git a/nextcloud/php-tuning.ini b/nextcloud/php-tuning.ini new file mode 100644 index 0000000..561d0a3 --- /dev/null +++ b/nextcloud/php-tuning.ini @@ -0,0 +1,10 @@ +; OPcache tuning for Nextcloud +opcache.interned_strings_buffer=16 +opcache.max_accelerated_files=10000 +opcache.revalidate_freq=60 +opcache.save_comments=1 +opcache.enable_file_override=1 + +; APCu local cache +apc.shm_size=64M +apc.enable_cli=1