https://bugs.contribs.org/show_bug.cgi?id=11171
Bug ID: 11171
Summary: php74-nextcloud seems busy (you may need to increase
pm.start_servers, or pm.min/max_spare_servers)
Classification: Contribs
Product: SME Contribs
Version: 10alpha
Hardware: ---
OS: ---
Status: CONFIRMED
Severity: normal
Priority: P3
Component: smeserver-nextcloud
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Target Milestone: ---
Noticed this in the log:
[pool php74-nextcloud] seems busy (you may need to increase pm.start_servers,
or pm.min/max_spare_servers), spawning 8 children, there are 2 idle, and 8
total children
Defaults are
max_children 15
min_spare_servers 3
max_spare_servers 4
start_servers 3
max_requests 1000
I propose we up these a little bit and add them as keys
max_children 20
min_spare_servers 4
max_spare_servers 8
start_servers 6
max_requests 1000
Modified template like this:
diff -ruN
smeserver-nextcloud-1.2.0.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Nextcloud
smeserver-nextcloud-1.2.0/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Nextcloud
---
smeserver-nextcloud-1.2.0.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Nextcloud
2020-11-13 17:13:39.403645729 +0100
+++
smeserver-nextcloud-1.2.0/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Nextcloud
2020-11-13 17:26:14.593466967 +0100
@@ -9,6 +9,16 @@
my $open_basedir= $nextcloud{PHPBaseDir} || '';
$open_basedir =
"/usr/share/nextcloud:/var/lib/nextcloud:/var/log/nextcloud.log:/var/lib/php/nextcloud:/home/e-smith/files/nextcloud:/dev/urandom:/proc/meminfo:$open_basedir";
my $id = 'nextcloud';
+ my $max_children = $nextcloud{'PHPmaxChildren'} || 20;
+ my $min_spare_servers = $nextcloud{'PHPminServers'} || 4;
+ my $start_servers = $nextcloud{'PHPstartServers'} || 6;
+ my $max_spare_servers = $nextcloud{'PHPmaxServers'} || 8;
+ my $max_requests = $nextcloud{'PHPmaxRequests'} || 1000;
+ # We probably ought to check that
+ # min Servers <= max Servers
+ # and
+ # start Servers >=min and <=max
+
$OUT .=<<_EOF;
[php$PHP_VERSION-$id]
@@ -19,11 +29,11 @@
listen.mode = 0660
listen = /var/run/php-fpm/php$PHP_VERSION-$id.sock
pm = dynamic
-pm.max_children = 15
-pm.start_servers = 3
-pm.min_spare_servers = 3
-pm.max_spare_servers = 4
-pm.max_requests = 1000
+pm.max_children = $max_children
+pm.start_servers = $start_servers
+pm.min_spare_servers = $min_spare_servers
+pm.max_spare_servers = $max_spare_servers
+pm.max_requests = $max_requests
php_admin_value[session.save_path] = /var/lib/php/$id/session
php_admin_value[session.gc_maxlifetime] = 86400
php_admin_value[opcache.file_cache] = /var/lib/php/$id/opcache
--
You are receiving this mail because:
You are the QA Contact for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/