Deployment of a scalable wordpress site

Posted August 18, 2021 308 views
NginxPHPWordPressScalingDeploymentHigh AvailabilityDigitalOcean Managed MySQL DatabaseInfrastructureDigitalOcean Droplets

About this post:
Although it is outdated, this is the most complete guide on the WordPress scaling that I see is recommend in this forum.
Can I have a simple setup without so many nodes and then scale?
Is there a best way or starting point to create a simple infrastructure and then scale if necessary?
I am thinking about the following configuration:

1x DO Database Managed 1vCPU-2GB + 1 failover node
2x Webservers Nginx 1vCPU-2GB
1x GlusterFS with 2 nodes(1vCPU-1GB) with replica
1x DO Load Balancing
1x Droplet 1vCPU 1GB for Redis to handler PHP sessions
1x Elastic Search Server(it is additional for improve the searches)

Digital Ocen Firewall(I’m not sure how to configure it on this infrastructure though.)
Things I might use:
Spaces Object Storage
Spaces CDN

We do not expect to receive a lot of traffic at the beginning although this could grow over time.

I would like to know if I am overdoing it with this initial infrastructure, or if there is a simpler, but equally scalable starting point.


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi there @agenteAND,

I believe that this looks like a very solid setup!

A couple of things that I would mention:

  • Run some stress tests to see how the website and the infrastructure perform under a specific load. You can learn more about this here:

That way you can decide how many servers you would need and pick up the right resources.

  • When you decide to go into production, I would recommend using a CDN like Cloudflare

  • If you need to scale in the future, also consider scaling vertically, meaning that you could add extra resources to your webservers for example before adding new servers.

Hope that this helps!

by Brian Boucheron
In this article, we'll talk about the server side of web performance optimization: how fast can your server respond to your user's requests? We'll review the general landscape of load testing, step through a plan to find your server's maximum practical response rate, and discuss some options for open source load testing software.