I've got a webserver on a Linode 1024 VPS based on
- Ubuntu 11.10
- Nginx 1.0.5
- PHP 5.3.6 (with PHP-FPM, APC)
- Varnish 3.0.2
And a couple of blogs there based on WordPress 3.3.1. One of them is a plain blog, with the default config, theme and just the "Hello World" post, to test the server. The other one is a blog cloned from other server with almost 10k posts and over 10k comments. This blog has aroung 5k uniques per day.
The server gives good numbers on an ab test for the test blog, But the same test with the cloned blog is impossible to do: the ab test loads the server too much, and I have to stop the process, which anyway makes ab to show this really poor result.
The htop shows also a "normal" load when in normal operation, but anormal big load during the ab test.
There's another strange thing happening (the most important for me): the Time To First Byte is extremely high, but after that wait the site loads really fast. This can be easily tested with services such as tools.pingdom.com, which gives this result. Please pay attention to that yellow region that means "Wait time".
Why is this happening? Possible ideas:
- Bad PHP-FPM config
- Linode DNS response time is awful. Nonsense -the test blog resolves DNS fine, TTFB is fantastic
- Bad Nginx config
In case someone needs more info,
- Here you've got the current cloned blog nginx config file (/etc/nginx/sites-available/muycomputerpro.com)
- Here you've got the current my.cnf config (/etc/mysql/my.cnf) (I know, for the moment not caching, this hasn't make a difference on TTFB on the past)
- Here you've got the current PHP-FPM config (/etc/php5/fpm/pool.d/www.conf)