AWS EC2 Cost Reduction - Instance scheduler vs other method for 20 minute daily workload

0

I am running a t3.xlarge EC2 instance for daily Veeam backup for MS365. The job only runs for about 20 minutes per day. I am looking for the best / most straightforward method to reduce costs of this instance. I started looking into using instance scheduler to start and stop the instance based on a schedule, and also looked into different instance options that may "bank" compute resources? Any suggestions would be greatly appreciated.

3 個答案
0

If this is something that has a persistent configuration then instance scheduler is a good fit. This way it will just start the instance when needed without much manual intervention needed. You can do persistent spot requests as well, which may lower your cost, but you run into the chance if a spot instance isn't available you might run into issues. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html

profile pictureAWS
專家
Rob_H
已回答 2 年前
0

I think I would set up an Auto Scaling Group with a Scheduled scaling policy and use a Spot instance defined in the ASG or Launch Template.

profile pictureAWS
專家
kentrad
已回答 2 年前
0

The options from both Rob_H and kentrad are both valid. Another possible option is to have a Lambda scheduled through Event Bridge to start the instance [1] and when the processing is done, a simple shutdown script can be executed on the machine (like /sbin/shutdown -h now). This way the instance is only running for the time it needs to be. I personally use this as it's the simplest for me to keep track of.

The lambda in the link has a stop option as well, I do not use that option, but it's available if it meets your needs.

[1] https://aws.amazon.com/premiumsupport/knowledge-center/start-stop-lambda-eventbridge/

profile pictureAWS
專家
已回答 2 年前

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

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

回答問題指南