DevopsArtFactory / goployer

AWS Deployer with Go
https://goployer.dev
Apache License 2.0
72 stars 13 forks source link

Scheduling event feature #84

Closed GwonsooLee closed 4 years ago

GwonsooLee commented 4 years ago

Is your feature request related to a problem? Please describe. I cannot set scheduled scaling event for autoscaling group. Scheduling feature could be used when users want to scale out during 9-18 or scale in during weekend in order to maximize the efficiency.

Describe the solution you'd like Add scheduling event configuration to manifest file. I think this configuration should be in a different block like autoscaling policy. And in the region configuration, users could specify multiple scheduling events referring the name of event in the scheduling_events

scheduling_events: &scheduling_events
  - name: scale_in_during_weekend
     capacity: 
         min: 0
         desired: 0 
         max: 0
  - name: start_9am_weekday
     capacity: 
         min: 1
         desired: 3
         max: 5

( ... skipped...)
stack:
  ... 
  regions:
      - region: ap-northeast-2
        instance_type: t3.medium
        ssh_key: test-master-key
        scheduling_events:
            - scale_in_during_weekend
            - start_9am_weekday
asbubam commented 4 years ago

I think it would be good to users. -_-)=b