WordFence and ASG & EFS issues, had to remove
-
Hello,
Great plugin, I have used it on numerous sites with no issue until recently. I have a high traffic site using AWS ASG with EFS. I noticed random 504’s for static images and random white pages and daily server crashes. It took me about 3 days to identify that WordFence was the issue. The main issue was due to the wflogs directory that is on EFS so that it could be shared across the cluster. If I ran an
ls -la
on the directory, it would take about 10 mins and still not show any output other than files don’t exist. I can see every iteration of the config.php.cfww2 (not actual code as I have resolved the issue and do not remember the exact output) andls
is just saying the file does not exist. I was never able to get a directory listing to complete… mostly due to my impatience as this was crashing my PROD siteand after 10 mins I was more focused on uptime.EFS has a 100mb throughput and I have no issue with any other shares resource. I share
cache
,languages
,uploads
,w3tc-config
, andwflogs
.wflogs
is the only one that seems to get corrupt. I am assuming this has to do with how often the files are be written to. With a high traffic site (over 1 million users) this was literally crashing a cluster of 30 servers. As soon as I disabled and removed WordFence, the entire site went back to normal and it’s been fine for about a week now with no issues. Before it was multiple times a day and I had to terminate instances and allow the ASG to spin up new ones… only to have them go down in a couple hours.I wish I had more data to give you but as this was PROD, I was focused on keeping uptime for the service. I am posting this here as a way to let you know about my experience using this on a larger project.
The issue appeared to be with
wflogs
being corrupted. I first deleted the directory and rebuilt it and reconfigured WordFence but that lasted about a day before it was corrupted again. The issue could be due to the 100mb throughput and the frequency that the files are being modified (read that these files are modified often somewhere that eludes me right now). Other than that, this was my first time experiencing this issue. Is there a setting to save this to a DB? I assume that defeats the purpose of what you are doing but I am no expert in what WordFence is doing.I just wanted to leave this for you as a means to investigate and see if there is anything that can be done. To solve my issue, I just removed the plugin. Ideally, I would like to use this plugin but unfortunately this is not possible at this time. Thanks for your time.
WordFence: 7.4.6
WordPress: 3.5.2
PHP-FPM: 7.2.26
Apache: 2.4.41
- The topic ‘WordFence and ASG & EFS issues, had to remove’ is closed to new replies.