Auto-scaling WordPress with Docker

  • Unknown's avatar

    Coming back to WordPress after an extended period in which I didn’t stay up to date with the developments and need a bit of help.

    I’m quite happy with the WordPress Docker setup managed by ECS on AWS. The service manages lifecycle, monitoring, service discovery, LB registration, etc.

    The only problem is that I would like to be able to run multiple instances of the WordPress image under a load balancer, both for redundancy, and to be able to scale up the number of workers when necessary.

    The database used is RDS, so that’s not an impediment. However, the last time I checked, WP wrote state to the file system, for theme config, dynamically installed plugins, and even uploaded images. This means that if I do my config in one instance, it won’t be reflected on the other ones and you will see two different versions depending to which the LB assigns you.

    When I did this in the past, with actual servers, I ran a filesystem monitoring and sync between all the WP instances, but this doesn’t seem feasible with Docker. Do you know of alternatives? Has anything changed in the way WP functions? How do you auto-scale your WP instances?

  • Hi there,

    Looks like you’re in the wrong forum. You’re referring to the self-hosted version of WordPress and you need to seek help at the WordPress.org forums:

    https://wordpress.org/support/

    These forums are for WordPress.com hosted sites only. If you want to know more about the differences between WordPress.com and WordPress.org you can read this document:

    WordPress.com vs. WordPress.org

  • The topic ‘Auto-scaling WordPress with Docker’ is closed to new replies.