vertical scaling issue

0

hello i'm trying to vertically scale my wordpress website and my vtger crm. here are the steps i'm following: 1- from my working vtiger or wordpress instance i created and AMI 2- from the AMI i create a lunch template 3- from the lunch template i created an auto scaling group my issues is these: -the instances created by the auto scaling groups are having different public ip address. -when i try to access to vtiger or the wordpress create by the auto scaling group with their public ip, i'm redirected to the original instance ip.

  • when i add the instances created by the auto scaling group to a target group and associate with application load balancer, the target group become unheathy

NB: the wordpress and the vtiger are using rds mariadb cruster

please i need your help for these issue i'm looking forward to your reply best regards

daniel
asked 5 months ago188 views
1 Answer
1

Hi,

Vertical scaling - add more cpu/memory to the existing VM.

Horizontal scaling - add more VMs, spread the load using load balancer between them.

Wordpress is not ready (by default) to scale horizontally. Depends on the plugins it may store some data on the local filesystem. If you still want to scale it horizontally you need:

  1. Configure media storage to the S3 (plugins) or shared EFS, which will be mounted to each VM
  2. Configure EFS for all other locally stored data
  3. Understand how would you update your WP (not via UI)

You can start from here https://aws.amazon.com/tutorials/launch-load-balanced-wordpress-website/, even it's Lightsail the principles are similar.

profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions