MariaDB 10.3 MasterSlave

2 x PHP-Apache 7.1

HAProxy Latest

Redis 4.0

phpMyAdmin STABLE


The stack is suitable for highload WordPress sites which you can scale as you want. It provides a one-click install solution for scalable WordPress with PHP-Apache and pagespeed module. The whole deployment takes about 10-15 minutes.

How it works

HAProxy on front-end takes requests from users and distributes the load between several nodes.

PHP-Apache comes in two containers with installed and enabled WP-CLI, redis-cache, HyperDB plugins and pagespeed module for Apache.

As a database is used MariaDB in MasterSlave configuration with Redis as object cache

How to deploy a stack
  1. Click “Deploy to my server”
  2. Sign in or create an account
  3. Choose a provider (how to link a hosting provider) and a region if you want to create new hosts or choose the created ones in Select hosts menu
  4. Fill in necessary fields (if they are, e.g. link to your repository)
  5. Click Create hosts and services
Minimal recommended configuration
  • 2 hosts with 2GB RAM
  • 1 host with 1GB RAM
After deploying

You can:

  • Scale your app and database in few clicks
  • Add your domains
  • Add TLS certificates (including free TLS by Let’s Encrypt)
  • Check online logs and metrics
  • Update app and system requirements of hosts
How to scale

Check a quick gif example on how to scale a database (MariaDB) and an app (Python in this case) or follow the next steps:

To scale a database:

  1. Open a database service (name “db” in the stack by default)
  2. Click Scale 
  3. Choose hosts for slaves
  4. Click Migrate service (means migration of database configuration)

To scale a WordPress service (PHP-Apache):

  1. Open a PHP-Apache service (name “blog” in the stack by default )
  2. Click Scale
  3. Choose hosts you want to use for new PHP-Apache containers
  4. Click Scale service
There is nothing else needs to do. Load balancer works in Sticky session mode by default and balances PHP-Apache containers. HyperDB plugin is already configured and works well with MasterSlave configuration.