• Hello,

    I’m attempting to load balance my wordpress site. I’m on wordpress 4.2.7.

    I’m running my site through varnish cache and HAProxy. I notice when I run the site through HAProxy I’m getting 504 timeout errors on the site intermittently

    Here’s the timeouts I have set on haproxy, which seem reasonable to me:

    timeout connect 12000
        timeout server 20000
        timeout client 20000

    I also have a mediawiki site running through the same setup. That’s fine. It’s just the wordpress site that times out with 504 errors with this setting.

    If I raise the timeouts to this in the haproxy config:

    timeout connect 24000
        timeout server 40000
        timeout client 40000

    The site will work, but it’s apparently still slow. For now I’ve put only one web server into the varnish config while I troubleshoot this.

    This is the site in question:

    http://beta.jokefire.com/

    How can I troubleshoot a slow performing wordpress site?

    Thanks

Viewing 1 replies (of 1 total)
  • First and foremost I would temporarily disable ALL of your active plugins AND switch to a default (i.e, Twenty series) theme just to rule out the idea that the performance hit is coming from some kind of 3rd party incompatibility.

    I would also test without the load balancer being involved. Just your host, your WordPress site, and your browsers of choice to test with. I am assuming you’ve made sure the slowness you’re seeing isn’t just a client issue, right?

    Be sure also to completely wipe the cache of the browsers you’re using to test with. Oh, and why WordPress 4.2.7? Might I suggest for a myriad of reasons to bump up to the latest version. 🙂

    P.S., If you find that you still are having slowdowns after doing all of the above then I would most certainly engage with your host provider’s support department. Just be sure to be able to clearly define “slow performing” and have reproducible steps.

Viewing 1 replies (of 1 total)

The topic ‘WordPress Site is Slow’ is closed to new replies.