Roots Discourse

Any information for scaling a WP website?


#1

A client has a lot of traffic, and I’ve tried messing with offloading assets to S3, trying different memcache/redis solutions, advanced post cache etc, but I’m wondering if someone has a concrete setup they can recommend, along with how to efficienctly load test it all.


#2

Both of these are a little dated but:

@swalkinshaw contributed to https://www.scalewp.io/

Also worth listening to: https://roots.io/podcast/ep12/


#3

Amazing resources! Thanks for them, surprised I missed them both.


#4

I can’t specifically comment on scaling Trellis in production, but I have done a bit of this related to a WooCommerce stack recently.

  1. Make sure you’re using Redis, one of the recommended hosts for Roots stuff, Kinsta, charges $100/mo for it, but some hosts have it included (such as Pantheon). I’m using the plugin on the .org repo by Pantheon with Kinsta currently.
  2. Is your caching solution working? What percentage of cache hits/misses are you getting?
  3. New Relic can help you diagnose where issues might be and some queries that might not be performing.
  4. Are you putting things in transients?

For load testing there are tons of options, but I’m working on something right now and hope to write a post on the blog about it when I’m complete.

This is a very broad topic, but only some things are going to apply to you based on the hosting solution you’re currently using. Also the type of traffic you’re getting. In my case, I also just needed much more power.


#5

Thanks for all of your points, I do need to somehow check my wp-redis cache hits/misses. Would love to know when you’re done with the load testing option. loader.io is what I use currently.


#6

I actually meant page cache hits/misses. But redis hits/misses can be easily checked with Query Monitor.

I think we’re planning on using Load Impact for load testing.


#7

How can you check that hit miss rate?

Also could you share the specific configuration you’re running please


#8

Sorry, I haven’t been logging on as much unless I’m tagged. There’s no configuration, you’ll just want to use this plugin: https://wordpress.org/plugins/wp-redis/, and I’m using Query Monitor to see my object cache hits/misses.