Pages

Thursday, November 30, 2023

Amazon ec2 auto scalling note

 idle resources datacenter. on premises.



===========


provision exactly demand.

every hour



+ROI

===========


everything fails all the time

so plan for failure and nothing fails


==========


ha system with no fail 


==========



// Amazon EC2 Auto Scaling


If you’ve tried to access a website that wouldn’t load and frequently timed out, the website might have received more requests than it was able to handle. This situation is similar to waiting in a long line at a coffee shop, when there is only one barista present to take orders from customers.



Amazon EC2 Auto Scaling enables you to automatically add or remove Amazon EC2 instances in response to changing application demand





ada 2 type auto scalling:

- dynamic scalling

- predictive scalling





dynamic scalling:

respond to changing demand



predictive scalling:

automatically schedules the right number of Amazon EC2 instances based on predicted demand




** To scale faster, you can use dynamic scaling and predictive scaling together.



misal minggu sepi = ec2 instance turunin

==========


// scale up vs scale out 



scale up = make instance bigger // adding more power


scale out = make more x amount instance   // adding more instance




===========


happy customer 

happy ceo 

happy architecture



==========


1 set minimum

2 set desired

3 set maximum  / scale as needed



minimum ada 1 ec2 instance didalam 1 auto scalling group pas config awal2.




**If you do not specify the desired number of Amazon EC2 instances in an Auto Scaling group, the desired capacity defaults to your minimum capacity.







============


Because Amazon EC2 Auto Scaling uses Amazon EC2 instances, you pay for only the instances you use, when you use them. You now have a cost-effective architecture that provides the best customer experience while reducing expenses.



============



No comments:

Post a Comment