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!

feita há 2 anos524 visualizações
2 Respostas
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
respondido há 8 meses
-1
Shawn
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas