Weird, last I heard there was no real difference between unix sockets
and TCP/IP. Maybe I should be looking into that too?!
What OS and version, distro, etc? What version of PHP?
On Tue, Jul 28, 2009 at 4:10 PM, sumitg<nginx-forum@nginx.us> wrote:
>
> I recently tried listening on unix sockets instead of IP sockets for a slow application I had, and saw that the performance (tested using ab) using unix sockets was far greater. However, on heavy loads, I started getting this in the nginx error logs:
>
>
> ...connect() to unix:/dev/shm/php-fpm.1.socket failed (11: Resource temporarily unavailable) while connecting to upstream...
>
>
> I made multiple pools in php-fpm.conf, but still get the errors. Many (but not all) requests fail during loads, some requests result in partial data transfers. It seems that there is some sort of contention that's happening over the unix-sockets, which wasn't there in IP-sockets. Can someone with a working unix-sockets based setup help me out here, as the performance gain is quite impressive?
>
> Thanks,
>
> Sumit.
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?3,4542,4542#msg-4542
>
>