Welcome! Log In Create A New Profile


Reducing the math on pm.start_servers' default value?

Posted by Pierre-Fran├žois CLEMENT 
Pierre-Fran├žois CLEMENT
Reducing the math on pm.start_servers' default value?
May 20, 2014 09:20PM
Just noticed this small but funny thing when looking at my php-fpm.conf
file tonight:

; The number of child processes created on startup.
> ; Note: Used only when pm is set to 'dynamic'
> ; Default Value: min_spare_servers + (max_spare_servers -
> min_spare_servers) / 2
> ;pm.start_servers = 20

It seems to me like this equation:

min_spare_servers + (max_spare_servers - min_spare_servers) / 2

can actually be reduced to:

(min_spare_servers + max_spare_servers) / 2

Or am I missing something obvious?


You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 52
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready