<div dir="ltr"><div>We're having following issue with nginx and php-fpm, please have a look on logs :<br><br>2013/12/26 16:43:24 [error] 9906#0: *37001 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.252.214.240, server: <a href="http://search.com">search.com</a>, request: "GET /search/es/index_video.php?videoid=1593251&is_updated=yes HTTP/1.1", upstream: "fastcgi://<a href="http://127.0.0.1:9000">127.0.0.1:9000</a>", host: "<a href="http://search.com">search.com</a>"<br>
<br></div>Also tried increasing proxy timeout to 300 from nginx. When we telnet the port 9000, connection automatically closed after 4~5 seconds :<br><br><br><div><br>Trying 127.0.0.1...<br>Connected to 127.0.0.1.<br>Escape character is '^]'.<br>
Connection closed by foreign host.<br><br></div><div>we've also found slow logs in php-fpm :<br><br>[root@search ~]# tail -30 /var/log/php-fpm/search-slow.log<br>[26-Dec-2013 16:44:48]  [pool search] pid 10303<br>script_filename = /home/search/public_html/search/es/index_video.php<br>
[0x00000000015e0960] curl_exec() /home/search/public_html/search/es/index_video.php:90<br><br>[26-Dec-2013 16:45:11]  [pool search] pid 10302<br>script_filename = /home/search/public_html/search/es/index_video.php<br>[0x00000000015e0960] curl_exec() /home/search/public_html/search/es/index_video.php:90<br>
<br>[26-Dec-2013 16:45:18]  [pool search] pid 10320<br>script_filename = /home/search/public_html/search/es/index_video.php<br>[0x00000000015d8950] curl_exec() /home/search/public_html/search/es/index_video.php:90<br><br>
[26-Dec-2013 16:45:28]  [pool search] pid 10311<br>script_filename = /home/search/public_html/search/es/index_video.php<br>[0x00000000015e0960] curl_exec() /home/search/public_html/search/es/index_video.php:73<br><br>[26-Dec-2013 16:45:34]  [pool search] pid 10307<br>
script_filename = /home/search/public_html/search/es/index_video.php<br>[0x00000000015e2cd0] curl_exec() /home/search/public_html/search/vendor/ruflin/Elastica/lib/Elastica/Transport/Http.php:117<br>[0x00000000015e2a20] exec() /home/search/public_html/search/vendor/ruflin/Elastica/lib/Elastica/Request.php:165<br>
[0x00000000015e2568] send() /home/search/public_html/search/vendor/ruflin/Elastica/lib/Elastica/Client.php:526<br>[0x00000000015e2278] request() /home/search/public_html/search/vendor/ruflin/Elastica/lib/Elastica/Bulk.php:269<br>
[0x00000000015e1fa0] send() /home/search/public_html/search/vendor/ruflin/Elastica/lib/Elastica/Client.php:249<br>[0x00000000015e1d20] addDocuments() /home/search/public_html/search/vendor/ruflin/Elastica/lib/Elastica/Index.php:123<br>
[0x00000000015e1aa0] addDocuments() /home/search/public_html/search/vendor/ruflin/Elastica/lib/Elastica/Type.php:161<br>[0x00000000015e0960] addDocuments() /home/search/public_html/search/es/index_video.php:34<br><br>[26-Dec-2013 16:45:53]  [pool search] pid 10322<br>
script_filename = /home/search/public_html/search/es/index_video.php<br>[0x00000000015e0960] curl_exec() /home/search/public_html/search/es/index_video.php:90<br><br><br></div><div>Please help me.<br><br>Regards.<br>Shahzaib<br>
</div><div><br><br></div></div>