liveBook · Manning

Auto-scaling group

As explained in Build Python Web Apps with Streamlit

An auto-scaling group is a managed collection of compute instances that adjusts capacity according to demand or utilization.

An auto-scaling group is a collection of EC2 instances that Elastic Beanstalk adjusts automatically as application utilization changes. It helps a deployed app respond to changing workload without manually managing each instance. section 12.3.6

During an Elastic Beanstalk deployment, the auto-scaling group works alongside:

Launching a Streamlit application

Running eb create for a Docker-based Elastic Beanstalk environment packages the application, uploads it to S3, creates EC2 instances, configures the load balancer and security group, creates the auto-scaling group, and launches the application. section 12.3.6

Creating application version archive "app-250323_164015228511".
Uploading fact-frenzy/app-250323_164015228511.zip to S3. This may take a while.
Upload Complete.
...
Printing Status:
2025-03-23 23:40:17    INFO    createEnvironment is starting.
...
Application available at fact-frenzy.us-east-2.elasticbeanstalk.com
Successfully launched environment: fact-frenzy-prod

Inspect the deployment output showing environment creation, application availability, and successful launch. section 12.3.6

How Build Python Web Apps with Streamlit covers it

How deep it goes
Defines the group through its deployment role but does not detail scaling policies, thresholds, or instance-management rules.
Examples
Uses the fact-frenzy Elastic Beanstalk environment to demonstrate production launch and subsequent redeployment.
What you can do after
Operate/configure Elastic Beanstalk to launch an application whose EC2 capacity scales automatically with utilization.
How it connects
Connects EC2 instances, load balancers, security groups, CloudWatch, S3, Docker, and Elastic Beanstalk environments.

Also explained in

Compare how 2 books explain auto-scaling group →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build Python Web Apps with Streamlit. The section links point to the parts of the book it draws on.