Re: problem about PHP-FPM in TCP socket and Unix socket

From: Date: Sat, 03 Mar 2012 00:59:12 +0000
Subject: Re: problem about PHP-FPM in TCP socket and Unix socket
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-316863@lists.php.net to get a copy of this message
Something else that should be said: You won't need to muck around with firewall settings as well (that if your running a firewall on the same box On Sat, Mar 3, 2012 at 11:22 AM, Matijn Woudt <tijnema@gmail.com> wrote: > On Fri, Mar 2, 2012 at 5:56 PM, Yuchen Wang <phobosw@gmail.com> wrote: >> Hello all, >> >> I am trying to config some new server >> >> All of my servers are using TCP Socket(127.0.0.1:9000) between nginx and >> php-fpm before >> >> But, I run ab(ab -n 20000 -c50 http://192.168.74.130:81/) >> to test the >> performance of Unix Socket and TCP Socket, >> the result is Unix is little better than TCP >> >> Usually we run php and web server in the same server, >> So, TCP socket and Unix socket >> Which method do you prefer ? >> >> Thank you >> >> -- >> *Yuchen Wang* > > Always go for Unix sockets. TCP has quite a bit overhead which > includes stuff you really don't need if two processes live on the same > server. Think about error detection, flow control, congestion control, > packet loss. None of these are needed if your system is functioning > correctly. > > - Matijn > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#316863) next »