1 |
jcrisp |
1.1 |
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 |
2 |
|
|
--- smeserver-nextcloud-1.2.0.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Nextcloud 2020-12-01 15:11:43.509587378 +0100 |
3 |
|
|
+++ smeserver-nextcloud-1.2.0/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Nextcloud 2020-12-01 15:12:53.825705751 +0100 |
4 |
|
|
@@ -14,10 +14,8 @@ |
5 |
|
|
my $start_servers = $nextcloud{'PHPstartServers'} || 6; |
6 |
|
|
my $max_spare_servers = $nextcloud{'PHPmaxServers'} || 8; |
7 |
|
|
my $max_requests = $nextcloud{'PHPmaxRequests'} || 1000; |
8 |
|
|
- # We probably ought to check that |
9 |
|
|
- # min Servers <= max Servers |
10 |
|
|
- # and |
11 |
|
|
- # start Servers >=min and <=max |
12 |
|
|
+ $min_spare_servers = ( $min_spare_servers > $max_spare_servers ) ? printf("%.0f",$max_spare_servers/2) : $min_spare_servers; |
13 |
|
|
+ $start_servers = ( $start_servers > $max_spare_servers ) ? printf("%.0f", $max_spare_servers /2 + $min_spare_servers/2 ) : $start_servers; |
14 |
|
|
|
15 |
|
|
$OUT .=<<_EOF; |
16 |
|
|
|