note 105140 deleted from install.fpm.configuration by danbrown

From: Date: Fri, 29 Jul 2011 21:29:04 +0000
Subject: note 105140 deleted from install.fpm.configuration by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-182004@lists.php.net to get a copy of this message
Note Submitter: perusio at gmail dot com ---- This is not exactly like this. In fact the exact value of the listen.backlog parameter depends on the the type of setting you have, dynamic or static, the load, the peer: Nginx or Apache. As a general rule of thumb you should set this value for something other then the OS defined value (which is 128 on Linux). Remember that the peer forwarding the requests to php-fpm has in general better performance than your PHP app. Hence a value of 128 might suffice for Nginx or Apache, but be too small for php-fpm. If you start getting 502s on the web server forwarding the requests to php-fpm then try to increase the value of listen.backlog progressing in multiples of 2.: 256, 512, 1024... Remember also that this is value per pool. Meaning that the default can suffice in a particular case but be insufficient in others. <?php ; Example value to be used on dynamic settings with high loads. listen.backlog = 4096 >

« previous php.notes (#182004) next »