2 min read
Running on spot instances can save us a bunch of money on the cloud. It is based on long-term trends in supply and demand. You'll pay the Spot price that's in effect for the time period your instances are running. We can use boto3 to retrieve the current spot price:
26/05/2022
Read more...2 min read
When running spot instances, if AWS needs to reclaim that capacity (or if the current Spot price exceeds our bid price) we will receive a two minutes grace period to be able to save any data we need.
To check is we need to terminate our tasks on the spot instance we can use the instance's metadata
24/05/2022
Read more...2 min read
On a running instance we might want to be able to identify whether it is a spot or on demand instance. We can use awscli to identify it
23/05/2022
Read more...3 min read
One of the advantages of using AWS Karpenter is that makes straightforward using spot instances. But how do we handle termination notices coming from AWS?
21/01/2022
Read more...3 min read
If you are using a mixed policy on your EKS workers ASG you will want to install the AWS node termination handler to drain a node once AWS notifies that a particular spot instance is going to be reclaimed
29/09/2021
Read more...