Hi,
BACKGROUND
I have an NGINX+PHP7+wordpress-based news website with about 0.5 mln pvs a month.
Over time, with more and more plugins, the code's not as great as it used to be.
Moreover, with increasing traffic, the VPS is starting to slow down a bit.
I noticed that the WP Super Cache signature now says 'Dynamic page generated in 350 ms' (or 330 ms or 370 ms) in most cases.
For pages loaded directly from cache, the load time (of just the html file) is 100 ms from where I test, but for archives and the front page -- which are not cached -- the load time is 450-550 ms. The problem is that this can sometimes be as high as 1.25 seconds occasionally.
I thought the problem was with the VPS, and moved from a 1 GB, 1 core vps to a 2 GB 2 core vps. That didn't really help.
So I moved to a new host with a 3 GHz processor (vs 2.2 GHz on the earlier one) and PCI SSD memory etc. I chose a single core VPS as it didn't really seem to matter on the previous one.
Now, the proportion of pages that report 1 second page generation time or load times has fallen quite sharply, from about 5% to about 1%. But they're still there (and I can't sleep when they're still there
I tried to see if any particular plugin was behind the 300-350 ms page generation time shown by Super Cache, and I couldn't identify any of the 10 plugins I use as the culprit. I am assuming, they're all responsible in parts.
I remember, before the site became so complex, the page generation time used to be 100-130 ms. But I can't really make the site as plain as it used to be either, as the audience expects more.
DOUBTS
My questions are --
1) Is 300-450 ms 'too much' for generating the page (it's roughly the same for posts and archive pages)? Is there any 'acceptable' or benchmark value for this? How much does your website take?
2) Will increasing the core count and/or RAM help bring this down? I have already tried stripping away all the plugins I don't need, but they've not had much impact yet. Removing the Yuzo Related Posts plugin, perhaps, was the only one that resulted in some improvement, cutting the generation time by about 50-60 ms. But I need the plugin, so I reinstalled it.
3) If it's a core-count/RAM bottleneck, should I look at 'managed wordpress' solutions that may just be more cost-effective than going for a VPS with 4GB memory and 4 cores. (I am in Asia, and these things cost much more here. I don't want to host it in the US or EU because it adds about 1 second to the page load time from India - the target market. It's currently hosted in Singapore.)
4) Will moving to a 'real' Cloud-based server provider -- instead of KVM -- help deal with the outliers as far as page generation time is concerned ( the 1-second-and-above category)? If so, can anyone suggest a real cloud-based VPS or managed wordpress provider, preferably with easy access from Asia?