Welcome! Log In Create A New Profile

Advanced

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: 122
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready