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

1개 답변
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
전문가
답변함 5달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠