Skip to content

Latest commit

 

History

History

AutoScaling

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Auto Scaling

Jump to


Useful Libs and Tools


Useful Articles and Blogs


Scheduled scaling

ℹ️ The cron expression formats used in AWS::AutoScaling::ScheduledAction and AWS::ApplicationAutoScaling::ScalableTarget are different.

  • For ASG / AWS::AutoScaling::ScheduledAction (see details):
    [Minute] [Hour] [DayOfMonth] [MonthOfYear] [DayOfWeek]
    
  • For Fargate / AWS::ApplicationAutoScaling::ScalableTarget (see details):
    cron(Minutes Hours DayOfMonth Month DayOfWeek Year)
    

ECS

ASG


Pre-scaling

As desired = running + pending - terminating, but scaling calculates only use running, so it can get into race conditions when setting desired out of band.

Possible solutions:

  • Include ScalingSuspend and ScalingResume calls around any pre-scaling tasks.
  • Use scaling policy to scale up/down, instead of setting desired count.