AWS Instance Scheduler - Help with Schedule

0

Hey everyone!

Hopefully an easy one for the more experienced of you.

I'm working on getting AWS Instance Scheduler going to scale up/down one of my instances for a burst of traffic that it receives at the first of every month. I just need some help with the syntax of the periods/schedules, and am looking for a little bit of advice.

This is what I'd like the behavior to be:

  1. Last day of month at 9pm (UTC) -> Scale up to larger instance type.
  2. 2nd day of month at 10am (UTC) -> Scale back down for the rest of the month.
  3. Repeat.

I have a period working that uses monthdays = 1-2 for the first task, but I want it to start a few hours prior. Then for the second I'm using monthdays = 3-F, but again, I'd like to be able to specify the exact time instead of 00:00 UTC, and that's where I'm hitting a wall.

Thank you!

已提問 2 年前檢視次數 496 次
2 個答案
0

Hello,

This should be a simple fix - all you should need to do is add these lines:

  "begintime": {  
    "S": "21:00"  
  },  
  "endtime": {  
    "S": "10:00"  
  },
  "timezone": {  
    "S": "UTC"  
  }

which will ensure the upscaling function will execute at 9pm UTC and stop the next day at 10am UTC. You can then edit your downscaling function to execute at your desired time until the next upscale time.

Reference: https://repost.aws/knowledge-center/stop-start-instance-scheduler

AWS
已回答 8 個月前
-1
Shawn
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南