Page cover

Auto-Scaling and Load Balancing

1.1 Overview

In this section, we outline the setup and configuration of auto-scaling and load-balancing for CapsureLabs cloud infrastructure using AWS and Google Cloud Platform (GCP). These configurations ensure the platform's scalability and high availability by dynamically adjusting resources based on traffic and workload demands.


1.2 Auto-Scaling on AWS

1.2.1 Launch Configuration for Auto-Scaling Group

aws autoscaling create-launch-configuration \
  --launch-configuration-name capsurelabs-lc \
  --image-id ami-1234567890abcdef0 \
  --instance-type t2.medium \
  --security-groups sg-12345678 \
  --key-name capsurelabs-key

1.2.2 Auto-Scaling Group Setup

aws autoscaling create-auto-scaling-group \
  --auto-scaling-group-name capsurelabs-asg \
  --launch-configuration-name capsurelabs-lc \
  --min-size 2 \
  --max-size 10 \
  --desired-capacity 2 \
  --vpc-zone-identifier "subnet-12345678,subnet-87654321"

1.2.3 Scaling Policy


1.3 Load Balancing on AWS with Elastic Load Balancing

1.3.1 Create an Application Load Balancer

1.3.2 Target Group Creation

1.3.3 Register Targets and Configure Listener


1.4 Auto-Scaling and Load Balancing on Google Cloud Platform

1.4.1 Instance Template

1.4.2 Managed Instance Group with Auto-Scaling

1.4.3 Load Balancing with Cloud Load Balancer

Last updated