Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
1 5
Newest
 Necromancer
Impact
~21k people reached

Feb
3
awarded  Necromancer
Jan
31
comment Nginx + PHP-FPM Timeouts, almost zero load consumption?
@AD7six I've read things up again and you're right. FPM workers are configured based on free mem, nginx workers are configured according to CPU core count (like here). Must've mixed things up.
Jan
30
comment Php5-fpm Crash if much visitors
And anyway, memory is usually not the limiting factor for max. children, rather CPU cores. Max. child count should be set to approx. CPU core count, plus a few to compensate for IO waits etc.. Nothing goes faster beyond 100% CPU load, it's just a difference between waiting in queue and slow parallel serving with switching.
Jan
30
comment Php5-fpm Crash if much visitors
Agree that the PHP-FPM ondemand process manager is the better choice in most cases. But its max. number of child processes cannot be calculated like this: memory_limit is the absolute max that a PHP process may consume before forcefully terminated. On average, they consume much less.
Jan
30
comment Php5-fpm Crash if much visitors
I agree with the recommendation to set request_terminate_timeout, but your reason is not correct ;) This directive is to kill a running process after a certain amount of CPU time, as a safeguard when PHP's max_execution_time could not (which should have a bit smaller value to get the first chance) [source]. "To avoid memory shortage due to idle processes", the directive to use is pm.process_idle_timeout = 40 [see this answer].
Jan
30
comment Nginx + PHP-FPM Timeouts, almost zero load consumption?
Hmm, not sure. The php5-fpm.log message you show above does not indicate server overload, just a fifth parallel request coming in. Since 5 is the max. number of child processes, other requests will then go into a backlog. From this, the OP's situation would result if queue items stay for 3 min in that backlog and time out. Which means, massive server overload. Which is not cured by more PHP-FPM child processes. As a rule of thumb, these should be about the same number as CPU cores on the server.
Jan
30
revised FastCGI: comm with server … aborted: idle timeout (30 sec)
bold-in-code formatting error fix; language; added docs link
Jan
30
comment Nginx + php-fpm “504 Gateway Time-out” error with almost zero load (on a test-server)
This is a pool-level directive, you will get an error message when trying to put it into the php-fpm.conf's [global] section. It works there only if you also have your pool configs in there. Also: request_terminate_timeout docs.
Jan
30
answered FastCGI: comm with server … aborted: idle timeout (30 sec)
Jan
30
suggested approved edit on FastCGI: comm with server … aborted: idle timeout (30 sec)
Dec
30
awarded  Critic
Dec
30
revised How do diff over ssh?
multiple small improvements (language, formatting, added link)
Dec
30
suggested approved edit on How do diff over ssh?
Dec
29
answered Ubuntu 14.04 System Logging
Nov
19
revised Is it possible to generate RSA key without pass phrase?
properly referenced the other solution proposal referred to in here
Sep
14
comment Delete from mailq where subject matches
Unfortunately, this approach does not work for Unicode subject lines (means, those using encoded-word tokens as per RFC2047). But even grep-ing through postcat output does not work in these cases.
Sep
14
revised How do I permanently delete e-mail messages in the sendmail queue and keep them from coming back?
extended with discussion of a similar command
Sep
14
answered How do I permanently delete e-mail messages in the sendmail queue and keep them from coming back?
Mar
9
answered Rinetd failing to run
Feb
23
awarded  Supporter