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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠