note 105140 added to install.fpm.configuration

From: Date: Fri, 29 Jul 2011 19:56:18 +0000
Subject: note 105140 added to install.fpm.configuration
Groups: php.notes 
Request: Send a blank email to php-notes+get-182001@lists.php.net to get a copy of this message
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 > ---- Server IP: 69.147.83.197 Probable Submitter: 46.189.148.212 ---- Manual Page -- http://www.php.net/manual/en/install.fpm.configuration.php Edit -- https://master.php.net/note/edit/105140 Del: integrated -- https://master.php.net/note/delete/105140/integrated Del: useless -- https://master.php.net/note/delete/105140/useless Del: bad code -- https://master.php.net/note/delete/105140/bad+code Del: spam -- https://master.php.net/note/delete/105140/spam Del: non-english -- https://master.php.net/note/delete/105140/non-english Del: in docs -- https://master.php.net/note/delete/105140/in+docs Del: other reasons-- https://master.php.net/note/delete/105140 Reject -- https://master.php.net/note/reject/105140 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#182001) next »