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 Risposte
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
ESPERTO
Rob_H
con risposta 2 anni fa
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
ESPERTO
kentrad
con risposta 2 anni fa
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
ESPERTO
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande