Got it

Autoscaling vs Load balancing

Latest reply: Apr 28, 2022 05:36:54 233 6 4 0 0

Few concepts sometimes can be confusing also sometimes they are interchangeably used so here we are going to discuss two important concepts that are Elastic Load Balancing and Autoscaling.

 

 Autoscaling:

 Auto Scaling automatically adjusts resources to keep up with the changes in demand based on pe configured AS policies.

Asynchronously adding or removing instances from resource groups depending on scheduled, periodic, or alarm policies. Auto Scaling can automatically increase instances during traffic surges to maintain application performance and reduce instances during slow periods to save money.

 Auto Scaling automates the process of establishing and terminating ECS instances based on traffic needs. Auto Scaling ensures you have enough ECS instances to handle the application load.

It allows for elasticity and scalability. An Auto Scaling group is a grouping of ECS instances (ASG). You can set a minimum number of instances in each ASG, Auto Scaling will never drop below that number. You can optionally set a maximum number of instances per ASG, which will be respected. Auto Scaling will guarantee the group has the desired capacity. A scaling policy determines when Auto Scaling launches or stops instances. On-demand/dynamic scaling, and cyclic/scheduled scaling determine when, if, and how the ASG scales.

Scaling Plans define the triggers and de-provisioning of instances. A launch configuration contains parameters like instance family, instance type, AMI, key pair, and security groups.


auto

 

 Elastic Load Balancing:

Elastic Load Balance (ELB) automatically distributes incoming traffic to different backend servers based on the rules you set up. Applications that run on ELB can be better at providing service and be more available because it eliminates single points of failure (SPOFs).


eeee

Load balancing distributes workload evenly across numerous servers for high-traffic applications and websites that serve thousands of users globally.  A load balancer routes requests to servers that can efficiently handle them, reducing downtime.

A load balancer distributes traffic among ECS instances. With a load balancer, your application will have a single point of access (DNS) to several downstream instances. The load balancer will also regularly verify the instances' health, They now include security, acceleration, and authentication.

Elastic Load Balancing (ELB) can also provide SSL termination. This means it will handle the client-server connection termination and encryption. The ELB will also help you keep track of permissions between areas.

 

 

 

Conclusion:

 

Load balancing does not replace auto-scaling. When both of them function together, it can help promote effective auto-scaling. In order to redirect connections from faulty instances, load balancing must create new instances.

So auto-scaling will create new instances, and load balancing will connect them. That's why both Elastic Load Balancing and Auto Scaling are useful. and by using both of them together availability, robustness and efficiency of the system is improved.

 

 Sources:

https://support.huaweicloud.com/intl/en-us/productdesc-as/as_pro_0010.html

https://www.huaweicloud.com/intl/en-us/product/as.html

https://medium.com/programmingnotes/aws-auto-scaling-and-load-balancing-b1c6eeb4d074

 

https://www.cloudzero.com/blog/aws-auto-scaling

 



  • x
  • convention:

thibay
Created Apr 27, 2022 14:45:00

Good share
View more
  • x
  • convention:

MahMush
MahMush Created Apr 29, 2022 06:00:54 (0) (0)
these two concepts are really important for peak time resource management  
RNT
Created Apr 27, 2022 16:37:45

Useful post.

thanks

View more
  • x
  • convention:

MahMush
MahMush Created Apr 29, 2022 06:01:27 (0) (0)
which one of the two do you think is more important  
user_3915171
Created Apr 28, 2022 05:36:54

thanks
View more
  • x
  • convention:

MahMush
MahMush Created Apr 29, 2022 06:02:12 (0) (0)
which one of these two AS and ELB is desireable  

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.