Scaling in the DevOps term, which means handing the AWS EC2 instance or handling the server at the time of load and low-load. There are various types of scaling in Amazon Web Service EC2, lets discuss one by one.
Scale-in: Scale-in is a term to increase the hardware of the existing machines and creating new machines.
Scale-out: Scale-out is a term to decrease the hardware of existing machines and deleting instances or machines.
What is vertical scaling?
Increasing and decreasing the hard disk of the existing machine. This will increase the hardware of the machine, e.g. HDD(Hard disk drive), RAM and CPU. In AWS we have various types of instances those types are available with many hardware configurations. to update the EC2 instance type, navigate to below mentioned path.
Action > Instance Setting > Change instance type
To change the EC2 instance type first stop the instance, if that is active and running. Then Goto Action >> Instance type >> change instance type and select the right instance type to which you would like to move. This will change the CPU and RAM of your machine. Changing an instance type from t2-micro to t2-medium will upgrade your EC2 instance with the below hardware configurations.
T2-micro: (1 CPU, 1GB RAM)
T2-medium: (2 CPU, 4GB RAM)
Changing the instance type will not increase or decrease the HDD size, we need to modify the volume to add or remove the storage. Below are the steps for updating the storage size in AWS machine.
How to change the HDD size in AWS instance?
To update the size of the hard drive attached with your EC2 instance navigate to the following paths.
Elastic block store > Volume > look for the right associated volume > select the volume > click on action > modify volume > change the size accordingly > save the configuration.
What is horizontal scaling?
Creating and stopping new instances of AWS machines. Autoscaling is also a part of horizontal scaling where we instructed the AWS to automatically create or deactivate instances when needed.
Hope this helps you to understand and clear your doubts about AWS EC2 scaling.