add FPM worker tuning and architecture diagram

Increase PHP-FPM max_children from 5 to 12 to handle concurrent
requests without queuing, sized for a ~3GB VPS. Add Mermaid
architecture diagram to README.
This commit is contained in:
2026-03-22 17:07:43 +01:00
parent 4329cfd3f2
commit 995dfcc099
3 changed files with 50 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ services:
- ${DATA_ROOT}/nextcloud/data:/var/www/html/data
- ./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
networks:
- nextcloud-internal
logging:

View File

@@ -0,0 +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_requests = 500