• Resolved Michael Samson

    (@illuminice)


    Hello,

    I have a quick question…

    How would this plugin behave in an AWS (Amazon Web Services) environment in which there are multiple servers all running OPcache behind a load balancer?

    This is the kind of setup I have, and I’ve been concerned about OPcache and WordPress updates in general. I don’t actually run WordPress updates directly in this environment. I run all updates locally first, and then push those changes via a Git deployment model to the production server.

    I have OPcache set to 5 minutes, and it’s running on all the instances.

    Not too long ago I had a fatal crash of our site during a WordPress core update, and I’ve been trying to take preventative measures ever since. The caching was always a possible culprit. I should mention we’re also using a CDN (CloudFront).

    I’m hoping this plugin may help with our setup and update process, but it really depends on how it will work in a load-balanced environment.

    All my best!

    ~ Michael

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nierdz

    (@mnttech)

    Hi,

    I don’t know if this will help in such setup.
    I would recommend to add a hook in your git repository to flush opcache once your code is up-to-date. You can simply run a curl to a file containing opcache_reset(). You absolutely need to do it with curl and not by CLI cause opcache memory is not shared between fpm and CLI.

    Hope this helps…

    Thread Starter Michael Samson

    (@illuminice)

    Hello,

    Thanks for getting back to me about this issue!

    I had a feeling this plugin wasn’t likely to be a complete solution for our particular setup. With that said, it’s an impressive plugin. I particularly liked it’s many visual representations (especially for viewing the file system).

    I’m assuming we can keep this installed for useful opcache information without any problems, right? Even though this won’t work well to flush our opcache (it would only flush it on one instance), it’s still a useful plugin for viewing opcache related info.

    Thank you for your suggestion on flushing opcache as part of our deployment procedure. This sounds like the correct approach and I’m going to look into this further and see if we can do something along these lines.

    All my best,

    ~ Michael

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Question Regarding Usage with Load Balancer / Multi-Server Environment’ is closed to new replies.