NullByte каза:nginx is the best option, no doubt. With php-fpm or another parser, well we can talk about it http://www.predpriemach.com/images/smilies/icon_smile.gif
If we compare suphp, dso, cgi and the old fcgi, php-fpm (fastcgi), we will see a few times more economically CPU usage and a way more easy ways for optimization. RAM is not in the business, because the servers now are running 700+, the entry level and the suphp difference is minimal. Even there is no need to deal with other stuff…
nginx, cpanel with apache plus php-fpm = pure win = safety
Personally, no one can make me think that any other solution can offer better results. I’m playing with apache/php-fom and nginx/php-gpm since a lot of time. We will talk about a shared environment. If we talk about a server without a panel, nginx + php-fpm equals to 18000 queries in a second through a VPS with a quad-core CPU and 1024 memory. The site is Wordpress based and it is my biggest record for now. People from freenode sometimes can show results of 25 000 rps. This is without Varnish, no cache additives. Only fastcgi caching from Nginx, without any extras. With the standard combo you can get no more than 300? On many of the low-level services you will even get under 50. Here’s an small example
Benchmarking predpriemach.com (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Completed 400 requests Completed 500 requests Completed 600 requests Completed 700 requests Completed 800 requests Completed 900 requests Completed 1000 requests Finished 1000 requests Server Software: LiteSpeed Server Hostname: predpriemach.com Server Port: 80 Document Path: / Document Length: 414 bytes Concurrency Level: 10 Time taken for tests: 28.204 seconds Complete requests: 1000 Failed requests: 0 Write errors: 0 Non-2xx responses: 1000 Total transferred: 631000 bytes HTML transferred: 414000 bytes [U][B][FONT=Arial Black]Requests per second: 35.46 [#/sec] (mean)[/FONT][/B][/U] Time per request: 282.036 [ms] (mean) Time per request: 28.204 [ms] (mean, across all concurrent requests) Transfer rate: 21.85 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 122 139 20.1 131 259 Processing: 122 141 30.6 131 647 Waiting: 122 140 29.9 130 647 Total: 245 280 36.9 270 843 Percentage of the requests served within a certain time (ms) 50% 270 66% 282 75% 291 80% 299 90% 322 95% 347 98% 380 99% 394 100% 843 (longest request)
There is a reason for all people to wait for the show the whm module. I hope when I’m ready with the cpanel patch to have the opportunity for a video demonstration.
Последно редактирано от модератор: