Scaling WordPress: The Autoscaling Fallacy

Busy sites need autoscaling. That’s what everyone expects, technical and non-technical users alike. The rising popularity of cloud computing has taught us to expect unlimited capacity for all online services.

How does this apply to WordPress?

A quick search returns hundreds of results that equate AWS with automatic infinite capacity. While AWS is no silver bullet, some of these results do recommend a scalable architecture.

How does autoscaling actually work in the real world, though?

In theory, an adequately configured stack keeps track of various resources, such as CPU, Memory, PHP workers, etc. When the utilization for any of these resources exceeds a predefined limit for more than a few minutes, stack launches another VM. This new VM is then used to serve the additional traffic. Stack repeats this process as long as there is enough traffic to warrant additional resources.

Pretty cool, right?

While this process looks great on paper, it’s a little less magical in reality. When the stack launches a new VM to serve additional traffic, it can take 60 to 120 seconds for it to become ready and join the load-balancer. A good web ops team knows this and utilizes various caches and queues to make this latency invisible to the end-user. Without such caches and queues in place, visitors experience timeouts, slowdowns, or random errors while new VMs are being prepared.

Since autoscaling requires sustained heavy traffic to launch new VMs, it makes little sense to use it on smaller sites.

Time for a car analogy.

F1 cars are built for massive speed. But if you try diving an F1 car on slow speed, it doesn’t generate enough downforce to provide decent traction, the breaks aren’t warm enough to be useful, and the handling is tricky at best.

To get around some of these issues, the F1 crew pre-warms the tires, uses a starter motor to start the engine, and has the skills to handle any pit stops as quickly as possible.

When it comes to operating an autoscaling environment for WordPress, you do need similar systems in place. A process to warm up the load balancer, a way to spin up additional VMs, and a star crew that maintains the pit stops. There are just too many moving parts for autoscaling to “just work” automatically.

When you are shopping for an autoscaling solution, ask the providers on your shortlist these questions:

What’s your plan to minimize the latency while new VMs starting?

Will I be able to launch more VMs in advance if there is not enough traffic yet?

Will I be able to control the thresholds when autoscaling launches additional VMs?

And finally,

Will I be able to contact the crew that set this up directly when I’m expecting a traffic surge?

These questions will help you look past the marketing speak and save a lot of stress down the line.

This article was originally posted on ScaleDynamix.com. At Scale Dynamix, we help businesses and agencies that use WordPress or WooCommerce succeed on AWS, Google Cloud and Azure.

要查看或添加评论,请登录

Rahul N.的更多文章

  • Enterprise WordPress Security

    Enterprise WordPress Security

    WordPress gets a bad rap when it comes to security. Because WordPress powers over 35% of the web, it is an attractive…

  • Scaling WordPress: Restricted Hosting Platforms

    Scaling WordPress: Restricted Hosting Platforms

    There is a growing trend in the hosting industry, where providers advertise software versions as features. It’s not…

  • Scaling WordPress: Warm your cache

    Scaling WordPress: Warm your cache

    Has this ever happened to you? You go to a website, and it takes forever to load. Eventually, you see an error page.

  • Scaling WordPress: Going Beyond Uptime Monitoring

    Scaling WordPress: Going Beyond Uptime Monitoring

    In 2020 it is common knowledge that slow websites poorly affect revenue, brand loyalty, and conversions. Do you know…

  • Scaling WordPress: 5 Myths about Backups

    Scaling WordPress: 5 Myths about Backups

    Everyone agrees that backups are essential. Not only for websites but also for desktops, laptops, phones, and even git…

    1 条评论
  • Scaling WordPress: Capacity Planning

    Scaling WordPress: Capacity Planning

    One of the crucial steps in hosting WordPress on scalable infrastructure is picking the right type of VMs. Cloud…

  • Scaling WordPress: Using wp-cli for WebOps

    Scaling WordPress: Using wp-cli for WebOps

    Maintaining a high traffic WordPress or WooCommerce site takes a lot of work. While automation takes care of tasks such…

  • Scaling WordPress: Plugins are a liability

    Scaling WordPress: Plugins are a liability

    One of the reasons WordPress is so popular among marketing teams is its extensibility using plugins. Need to create a…

  • Scaling WordPress: Up vs Out

    Scaling WordPress: Up vs Out

    As your WordPress site starts to grow, there comes the point where current server resources are no longer sufficient…

  • Scaling WordPress: Using Docker in Production

    Scaling WordPress: Using Docker in Production

    While containers and jails have existed for decades, Docker brought them to the mainstream with better tooling and…

社区洞察

其他会员也浏览了