Automated scans on multiple sites all start exactly same time, killing CPU
-
Hi, interested to see if anyone can help
I run multiple wordpress sites on a VPS, all using Wordfence. Been running for years, no problem. Recently, every 3 days at a predictable time, the CPU maxes out and the sites start to fall over.
It all seems to be related to the recent Wordfence changes to scheduled scans – which are now every 72hours, at a time determined by the Wordfence servers. On checking the logs, I can see that Wordfence is initiating scans on most of the sites on this particular server at EXACTLY the same time, and it is this that’s killing the CPU.
It was never a problem before, when scans ran every 24 hours, and I can only assume that the scheduling of those scans was different then.
On reading the changelogs, I can see that there has been some attempt to prevent this exact problem (stuff about the WF servers detecting and delaying scans where it sees multiple instances on the same server). But that does not seem to be happening.
I’m running PHP7.0-fpm with nginx, Debian 8 on a 2Gb RAM Digital Ocean droplet.
I’ve enabled ‘low resource’ scans, which helps a bit by stretching out the scan stages, but the end result is the same. I can avoid the problem by disabling the scans, or at least the ‘scan file contents’ stages, but that rather defeats the object.
I appreciate that a) a VPS with more cores would help this problem, and b) with Wordfence Pro I could manually schedule the time of the scans – but this configuration has always been fine until 10 sites start to scan simultaneously, and the cost of that number of Pro licences is just prohibitive.
So if I’m right, I kinda get WHY this problem is happening, but I’d love to get some feedback from Wordfence about the logic behind kicking off all the scans at the same time. At the moment, I’m having to disable the automatic scanning for all of the sites, which means that WF is much less useful.
Thanks in advance
The topic ‘Automated scans on multiple sites all start exactly same time, killing CPU’ is closed to new replies.