DEV Community

Cover image for AWS Auto scaling without Load Balancer
Kannan
Kannan

Posted on

AWS Auto scaling without Load Balancer

  • Create a instance with Ubuntu OS and with instance type as t2.nano and selected the existing key pair and security group and set 2 instance to create and launch.

  • Run the apdt update and install apache webserver and modify the index.html
    sudo apt update
    sudo apt install apache2 -y
    sudo rm /var/www/html/index.html
    sudo vim /var/www/html/index.html
    <h1>Testing for Auto Scaling Group</h1>

  • Go to Action >Image and Template > Create Image

Image description

  • set as noboot and create image

Image description

Image description

  • Once image created Stop and Terminate the instance which we created

Image description

  • Instance >Launch template >Create the launch template>Select AMI image.

Image description

Image description

Image description

  • Instance type s t2.nano>select keypair >Existing security group> Advance Network Configuration >Enable "Auto Assign IP"

Image description

Image description

Image description

  • Create Auto scaling Group >Select the template >Select all network availability zone >Select No Load balancing.

Image description

Image description

Image description

  • Group size >Desired capacity as 1 >No scaling policies

Image description

  • Select instance maintance policy as "Launch before Terminating"

Image description

  • Add Notification >Create a topic and provide name of the topic and email ID to send notification > Unselect "Fail to launch & Terminate"

Image description

  • Add Tag

Image description

  • Once done Review all the settings and create a auto scaling group

Image description

Image description

  • Verify the email and confirm the notification subscription

Image description

Image description

  • Auto Scaling group has been create and launch the Instance from the AMI Image Template. you can monitor on the Activity tab.

Image description

  • Verfiy the instance status

Image description.

Image description

  • If you stop the instance ASG-1 it will create the new instance using Auto scaling group monitor the process on the ASG Activity. Image description

Image description

Image description

  • These how auto scaling group works without load balancer.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up